@Test public void equalsTest() throws Exception { ClientContext clientContext = ClientContext.create(mConf); new EqualsTester() .addEqualityGroup( OutStreamOptions.defaults(clientContext), OutStreamOptions.defaults(clientContext)) .testEquals(); }
@Override public boolean equals(Object o) { if (this == o) { return true; } if (!(o instanceof OutStreamOptions)) { return false; } OutStreamOptions that = (OutStreamOptions) o; return Objects.equal(mAcl, that.mAcl) && Objects.equal(mBlockSizeBytes, that.mBlockSizeBytes) && Objects.equal(mCommonOptions, that.mCommonOptions) && Objects.equal(mGroup, that.mGroup) && Objects.equal(mLocationPolicy, that.mLocationPolicy) && Objects.equal(mMediumType, that.mMediumType) && Objects.equal(mMode, that.mMode) && Objects.equal(mMountId, that.mMountId) && Objects.equal(mOwner, that.mOwner) && Objects.equal(mPersistenceWaitTime, that.mPersistenceWaitTime) && Objects.equal(mReplicationDurable, that.mReplicationDurable) && Objects.equal(mReplicationMax, that.mReplicationMax) && Objects.equal(mReplicationMin, that.mReplicationMin) && Objects.equal(mUfsPath, that.mUfsPath) && Objects.equal(mWriteTier, that.mWriteTier) && Objects.equal(mWriteType, that.mWriteType); }
OutStreamOptions { @Override public boolean equals(Object o) { if (this == o) { return true; } if (!(o instanceof OutStreamOptions)) { return false; } OutStreamOptions that = (OutStreamOptions) o; return Objects.equal(mAcl, that.mAcl) && Objects.equal(mBlockSizeBytes, that.mBlockSizeBytes) && Objects.equal(mCommonOptions, that.mCommonOptions) && Objects.equal(mGroup, that.mGroup) && Objects.equal(mLocationPolicy, that.mLocationPolicy) && Objects.equal(mMediumType, that.mMediumType) && Objects.equal(mMode, that.mMode) && Objects.equal(mMountId, that.mMountId) && Objects.equal(mOwner, that.mOwner) && Objects.equal(mPersistenceWaitTime, that.mPersistenceWaitTime) && Objects.equal(mReplicationDurable, that.mReplicationDurable) && Objects.equal(mReplicationMax, that.mReplicationMax) && Objects.equal(mReplicationMin, that.mReplicationMin) && Objects.equal(mUfsPath, that.mUfsPath) && Objects.equal(mWriteTier, that.mWriteTier) && Objects.equal(mWriteType, that.mWriteType); } }
OutStreamOptions { @Override public boolean equals(Object o) { if (this == o) { return true; } if (!(o instanceof OutStreamOptions)) { return false; } OutStreamOptions that = (OutStreamOptions) o; return Objects.equal(mAcl, that.mAcl) && Objects.equal(mBlockSizeBytes, that.mBlockSizeBytes) && Objects.equal(mCommonOptions, that.mCommonOptions) && Objects.equal(mGroup, that.mGroup) && Objects.equal(mLocationPolicy, that.mLocationPolicy) && Objects.equal(mMediumType, that.mMediumType) && Objects.equal(mMode, that.mMode) && Objects.equal(mMountId, that.mMountId) && Objects.equal(mOwner, that.mOwner) && Objects.equal(mPersistenceWaitTime, that.mPersistenceWaitTime) && Objects.equal(mReplicationDurable, that.mReplicationDurable) && Objects.equal(mReplicationMax, that.mReplicationMax) && Objects.equal(mReplicationMin, that.mReplicationMin) && Objects.equal(mUfsPath, that.mUfsPath) && Objects.equal(mWriteTier, that.mWriteTier) && Objects.equal(mWriteType, that.mWriteType); } OutStreamOptions(CreateFilePOptions options, ClientContext context,
      AlluxioConfiguration alluxioConf); private  OutStreamOptions(ClientContext context, AlluxioConfiguration alluxioConf); }
OutStreamOptions { @Override public boolean equals(Object o) { if (this == o) { return true; } if (!(o instanceof OutStreamOptions)) { return false; } OutStreamOptions that = (OutStreamOptions) o; return Objects.equal(mAcl, that.mAcl) && Objects.equal(mBlockSizeBytes, that.mBlockSizeBytes) && Objects.equal(mCommonOptions, that.mCommonOptions) && Objects.equal(mGroup, that.mGroup) && Objects.equal(mLocationPolicy, that.mLocationPolicy) && Objects.equal(mMediumType, that.mMediumType) && Objects.equal(mMode, that.mMode) && Objects.equal(mMountId, that.mMountId) && Objects.equal(mOwner, that.mOwner) && Objects.equal(mPersistenceWaitTime, that.mPersistenceWaitTime) && Objects.equal(mReplicationDurable, that.mReplicationDurable) && Objects.equal(mReplicationMax, that.mReplicationMax) && Objects.equal(mReplicationMin, that.mReplicationMin) && Objects.equal(mUfsPath, that.mUfsPath) && Objects.equal(mWriteTier, that.mWriteTier) && Objects.equal(mWriteType, that.mWriteType); } OutStreamOptions(CreateFilePOptions options, ClientContext context,
      AlluxioConfiguration alluxioConf); private  OutStreamOptions(ClientContext context, AlluxioConfiguration alluxioConf); static OutStreamOptions defaults(ClientContext context, AlluxioConfiguration alluxioConf); static OutStreamOptions defaults(ClientContext context); String getMediumType(); AccessControlList getAcl(); long getBlockSizeBytes(); BlockLocationPolicy getLocationPolicy(); AlluxioStorageType getAlluxioStorageType(); FileSystemMasterCommonPOptions getCommonOptions(); UnderStorageType getUnderStorageType(); String getOwner(); String getGroup(); Mode getMode(); long getPersistenceWaitTime(); int getReplicationDurable(); int getReplicationMax(); int getReplicationMin(); long getMountId(); String getUfsPath(); int getWriteTier(); WriteType getWriteType(); OutStreamOptions setMediumType(String mediumType); OutStreamOptions setAcl(AccessControlList acl); OutStreamOptions setBlockSizeBytes(long blockSizeBytes); OutStreamOptions setLocationPolicy(BlockLocationPolicy locationPolicy); OutStreamOptions setWriteTier(int writeTier); OutStreamOptions setWriteType(WriteType writeType); OutStreamOptions setMountId(long mountId); OutStreamOptions setUfsPath(String ufsPath); OutStreamOptions setOwner(String owner); OutStreamOptions setGroup(String group); OutStreamOptions setPersistenceWaitTime(long persistenceWaitTime); OutStreamOptions setReplicationDurable(int replicationDurable); OutStreamOptions setReplicationMax(int replicationMax); OutStreamOptions setReplicationMin(int replicationMin); OutStreamOptions setMode(Mode mode); @Override boolean equals(Object o); @Override int hashCode(); @Override String toString(); }
OutStreamOptions { @Override public boolean equals(Object o) { if (this == o) { return true; } if (!(o instanceof OutStreamOptions)) { return false; } OutStreamOptions that = (OutStreamOptions) o; return Objects.equal(mAcl, that.mAcl) && Objects.equal(mBlockSizeBytes, that.mBlockSizeBytes) && Objects.equal(mCommonOptions, that.mCommonOptions) && Objects.equal(mGroup, that.mGroup) && Objects.equal(mLocationPolicy, that.mLocationPolicy) && Objects.equal(mMediumType, that.mMediumType) && Objects.equal(mMode, that.mMode) && Objects.equal(mMountId, that.mMountId) && Objects.equal(mOwner, that.mOwner) && Objects.equal(mPersistenceWaitTime, that.mPersistenceWaitTime) && Objects.equal(mReplicationDurable, that.mReplicationDurable) && Objects.equal(mReplicationMax, that.mReplicationMax) && Objects.equal(mReplicationMin, that.mReplicationMin) && Objects.equal(mUfsPath, that.mUfsPath) && Objects.equal(mWriteTier, that.mWriteTier) && Objects.equal(mWriteType, that.mWriteType); } OutStreamOptions(CreateFilePOptions options, ClientContext context,
      AlluxioConfiguration alluxioConf); private  OutStreamOptions(ClientContext context, AlluxioConfiguration alluxioConf); static OutStreamOptions defaults(ClientContext context, AlluxioConfiguration alluxioConf); static OutStreamOptions defaults(ClientContext context); String getMediumType(); AccessControlList getAcl(); long getBlockSizeBytes(); BlockLocationPolicy getLocationPolicy(); AlluxioStorageType getAlluxioStorageType(); FileSystemMasterCommonPOptions getCommonOptions(); UnderStorageType getUnderStorageType(); String getOwner(); String getGroup(); Mode getMode(); long getPersistenceWaitTime(); int getReplicationDurable(); int getReplicationMax(); int getReplicationMin(); long getMountId(); String getUfsPath(); int getWriteTier(); WriteType getWriteType(); OutStreamOptions setMediumType(String mediumType); OutStreamOptions setAcl(AccessControlList acl); OutStreamOptions setBlockSizeBytes(long blockSizeBytes); OutStreamOptions setLocationPolicy(BlockLocationPolicy locationPolicy); OutStreamOptions setWriteTier(int writeTier); OutStreamOptions setWriteType(WriteType writeType); OutStreamOptions setMountId(long mountId); OutStreamOptions setUfsPath(String ufsPath); OutStreamOptions setOwner(String owner); OutStreamOptions setGroup(String group); OutStreamOptions setPersistenceWaitTime(long persistenceWaitTime); OutStreamOptions setReplicationDurable(int replicationDurable); OutStreamOptions setReplicationMax(int replicationMax); OutStreamOptions setReplicationMin(int replicationMin); OutStreamOptions setMode(Mode mode); @Override boolean equals(Object o); @Override int hashCode(); @Override String toString();  }