@Override public int hashCode() { List<Object> list = new ArrayList<Object>(); boolean present_storageResourceId = true && (isSetStorageResourceId()); list.add(present_storageResourceId); if (present_storageResourceId) list.add(storageResourceId); boolean present_loginUserName = true && (isSetLoginUserName()); list.add(present_loginUserName); if (present_loginUserName) list.add(loginUserName); boolean present_fileSystemRootLocation = true && (isSetFileSystemRootLocation()); list.add(present_fileSystemRootLocation); if (present_fileSystemRootLocation) list.add(fileSystemRootLocation); boolean present_resourceSpecificCredentialStoreToken = true && (isSetResourceSpecificCredentialStoreToken()); list.add(present_resourceSpecificCredentialStoreToken); if (present_resourceSpecificCredentialStoreToken) list.add(resourceSpecificCredentialStoreToken); return list.hashCode(); }
@Override public int hashCode() { List<Object> list = new ArrayList<Object>(); boolean present_storageResourceId = true && (isSetStorageResourceId()); list.add(present_storageResourceId); if (present_storageResourceId) list.add(storageResourceId); boolean present_loginUserName = true && (isSetLoginUserName()); list.add(present_loginUserName); if (present_loginUserName) list.add(loginUserName); boolean present_fileSystemRootLocation = true && (isSetFileSystemRootLocation()); list.add(present_fileSystemRootLocation); if (present_fileSystemRootLocation) list.add(fileSystemRootLocation); boolean present_resourceSpecificCredentialStoreToken = true && (isSetResourceSpecificCredentialStoreToken()); list.add(present_resourceSpecificCredentialStoreToken); if (present_resourceSpecificCredentialStoreToken) list.add(resourceSpecificCredentialStoreToken); return list.hashCode(); }
if (struct.isSetFileSystemRootLocation()) { oprot.writeFieldBegin(FILE_SYSTEM_ROOT_LOCATION_FIELD_DESC); oprot.writeString(struct.fileSystemRootLocation);
if (struct.isSetFileSystemRootLocation()) { oprot.writeFieldBegin(FILE_SYSTEM_ROOT_LOCATION_FIELD_DESC); oprot.writeString(struct.fileSystemRootLocation);
if (isSetFileSystemRootLocation()) { if (!first) sb.append(", "); sb.append("fileSystemRootLocation:");
if (isSetFileSystemRootLocation()) { if (!first) sb.append(", "); sb.append("fileSystemRootLocation:");
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { throw new IllegalArgumentException(); } switch (field) { case STORAGE_RESOURCE_ID: return isSetStorageResourceId(); case LOGIN_USER_NAME: return isSetLoginUserName(); case FILE_SYSTEM_ROOT_LOCATION: return isSetFileSystemRootLocation(); case RESOURCE_SPECIFIC_CREDENTIAL_STORE_TOKEN: return isSetResourceSpecificCredentialStoreToken(); } throw new IllegalStateException(); }
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { throw new IllegalArgumentException(); } switch (field) { case STORAGE_RESOURCE_ID: return isSetStorageResourceId(); case LOGIN_USER_NAME: return isSetLoginUserName(); case FILE_SYSTEM_ROOT_LOCATION: return isSetFileSystemRootLocation(); case RESOURCE_SPECIFIC_CREDENTIAL_STORE_TOKEN: return isSetResourceSpecificCredentialStoreToken(); } throw new IllegalStateException(); }
lastComparison = Boolean.valueOf(isSetFileSystemRootLocation()).compareTo(other.isSetFileSystemRootLocation()); if (lastComparison != 0) { return lastComparison; if (isSetFileSystemRootLocation()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.fileSystemRootLocation, other.fileSystemRootLocation); if (lastComparison != 0) {
lastComparison = Boolean.valueOf(isSetFileSystemRootLocation()).compareTo(other.isSetFileSystemRootLocation()); if (lastComparison != 0) { return lastComparison; if (isSetFileSystemRootLocation()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.fileSystemRootLocation, other.fileSystemRootLocation); if (lastComparison != 0) {
boolean this_present_fileSystemRootLocation = true && this.isSetFileSystemRootLocation(); boolean that_present_fileSystemRootLocation = true && that.isSetFileSystemRootLocation(); if (this_present_fileSystemRootLocation || that_present_fileSystemRootLocation) { if (!(this_present_fileSystemRootLocation && that_present_fileSystemRootLocation))
/** * Performs a deep copy on <i>other</i>. */ public StoragePreference(StoragePreference other) { if (other.isSetStorageResourceId()) { this.storageResourceId = other.storageResourceId; } if (other.isSetLoginUserName()) { this.loginUserName = other.loginUserName; } if (other.isSetFileSystemRootLocation()) { this.fileSystemRootLocation = other.fileSystemRootLocation; } if (other.isSetResourceSpecificCredentialStoreToken()) { this.resourceSpecificCredentialStoreToken = other.resourceSpecificCredentialStoreToken; } }
boolean this_present_fileSystemRootLocation = true && this.isSetFileSystemRootLocation(); boolean that_present_fileSystemRootLocation = true && that.isSetFileSystemRootLocation(); if (this_present_fileSystemRootLocation || that_present_fileSystemRootLocation) { if (!(this_present_fileSystemRootLocation && that_present_fileSystemRootLocation))
/** * Performs a deep copy on <i>other</i>. */ public StoragePreference(StoragePreference other) { if (other.isSetStorageResourceId()) { this.storageResourceId = other.storageResourceId; } if (other.isSetLoginUserName()) { this.loginUserName = other.loginUserName; } if (other.isSetFileSystemRootLocation()) { this.fileSystemRootLocation = other.fileSystemRootLocation; } if (other.isSetResourceSpecificCredentialStoreToken()) { this.resourceSpecificCredentialStoreToken = other.resourceSpecificCredentialStoreToken; } }
@Override public void write(org.apache.thrift.protocol.TProtocol prot, StoragePreference struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; oprot.writeString(struct.storageResourceId); BitSet optionals = new BitSet(); if (struct.isSetLoginUserName()) { optionals.set(0); } if (struct.isSetFileSystemRootLocation()) { optionals.set(1); } if (struct.isSetResourceSpecificCredentialStoreToken()) { optionals.set(2); } oprot.writeBitSet(optionals, 3); if (struct.isSetLoginUserName()) { oprot.writeString(struct.loginUserName); } if (struct.isSetFileSystemRootLocation()) { oprot.writeString(struct.fileSystemRootLocation); } if (struct.isSetResourceSpecificCredentialStoreToken()) { oprot.writeString(struct.resourceSpecificCredentialStoreToken); } }
@Override public void write(org.apache.thrift.protocol.TProtocol prot, StoragePreference struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; oprot.writeString(struct.storageResourceId); BitSet optionals = new BitSet(); if (struct.isSetLoginUserName()) { optionals.set(0); } if (struct.isSetFileSystemRootLocation()) { optionals.set(1); } if (struct.isSetResourceSpecificCredentialStoreToken()) { optionals.set(2); } oprot.writeBitSet(optionals, 3); if (struct.isSetLoginUserName()) { oprot.writeString(struct.loginUserName); } if (struct.isSetFileSystemRootLocation()) { oprot.writeString(struct.fileSystemRootLocation); } if (struct.isSetResourceSpecificCredentialStoreToken()) { oprot.writeString(struct.resourceSpecificCredentialStoreToken); } }