hash = (53 * hash) + getPropertiesList().hashCode();
== other.getReadOnly()); result = result && getPropertiesList() .equals(other.getPropertiesList()); result = result && (hasShared() == other.hasShared()); if (hasShared()) {
/** * Creates a new instance of {@link MountOptions} from {@link File.AddMountPointEntry}. * * @param options Proto options */ public MountOptions(File.AddMountPointEntry options) { this(); if (options != null) { if (options.hasReadOnly()) { mReadOnly = options.getReadOnly(); } for (File.StringPairEntry entry : options.getPropertiesList()) { mProperties.put(entry.getKey(), entry.getValue()); } if (options.hasShared()) { mShared = options.getShared(); } } }
/** * Creates mount proto options from {@link File.AddMountPointEntry}. * @param mountEntryPoint mount point entry * @return created mount proto options */ public static MountPOptions fromMountEntry(File.AddMountPointEntry mountEntryPoint) { MountPOptions.Builder optionsBuilder = MountPOptions.newBuilder(); if (mountEntryPoint != null) { if (mountEntryPoint.hasReadOnly()) { optionsBuilder.setReadOnly(mountEntryPoint.getReadOnly()); } for (File.StringPairEntry entry : mountEntryPoint.getPropertiesList()) { optionsBuilder.putProperties(entry.getKey(), entry.getValue()); } if (mountEntryPoint.hasShared()) { optionsBuilder.setShared(mountEntryPoint.getShared()); } } return optionsBuilder.build(); }