@Test public void equalsTest() throws Exception { new EqualsTester() .addEqualityGroup( CreateOptions.defaults(mConfiguration), CreateOptions.defaults(mConfiguration)) .testEquals(); }
@Override public boolean equals(Object o) { if (this == o) { return true; } if (!(o instanceof CreateOptions)) { return false; } CreateOptions that = (CreateOptions) o; return Objects.equal(mAcl, that.mAcl) && (mCreateParent == that.mCreateParent) && (mEnsureAtomic == that.mEnsureAtomic) && Objects.equal(mOwner, that.mOwner) && Objects.equal(mGroup, that.mGroup) && Objects.equal(mMode, that.mMode); }
CreateOptions { @Override public boolean equals(Object o) { if (this == o) { return true; } if (!(o instanceof CreateOptions)) { return false; } CreateOptions that = (CreateOptions) o; return Objects.equal(mAcl, that.mAcl) && (mCreateParent == that.mCreateParent) && (mEnsureAtomic == that.mEnsureAtomic) && Objects.equal(mOwner, that.mOwner) && Objects.equal(mGroup, that.mGroup) && Objects.equal(mMode, that.mMode); } }
CreateOptions { @Override public boolean equals(Object o) { if (this == o) { return true; } if (!(o instanceof CreateOptions)) { return false; } CreateOptions that = (CreateOptions) o; return Objects.equal(mAcl, that.mAcl) && (mCreateParent == that.mCreateParent) && (mEnsureAtomic == that.mEnsureAtomic) && Objects.equal(mOwner, that.mOwner) && Objects.equal(mGroup, that.mGroup) && Objects.equal(mMode, that.mMode); } private  CreateOptions(String authUmask); }
CreateOptions { @Override public boolean equals(Object o) { if (this == o) { return true; } if (!(o instanceof CreateOptions)) { return false; } CreateOptions that = (CreateOptions) o; return Objects.equal(mAcl, that.mAcl) && (mCreateParent == that.mCreateParent) && (mEnsureAtomic == that.mEnsureAtomic) && Objects.equal(mOwner, that.mOwner) && Objects.equal(mGroup, that.mGroup) && Objects.equal(mMode, that.mMode); } private  CreateOptions(String authUmask); static CreateOptions defaults(AlluxioConfiguration conf); AccessControlList getAcl(); boolean getCreateParent(); String getOwner(); String getGroup(); Mode getMode(); boolean isEnsureAtomic(); CreateOptions setAcl(AccessControlList acl); CreateOptions setCreateParent(boolean createParent); CreateOptions setEnsureAtomic(boolean atomic); CreateOptions setOwner(String owner); CreateOptions setGroup(String group); CreateOptions setMode(Mode mode); @Override boolean equals(Object o); @Override int hashCode(); @Override String toString(); }
CreateOptions { @Override public boolean equals(Object o) { if (this == o) { return true; } if (!(o instanceof CreateOptions)) { return false; } CreateOptions that = (CreateOptions) o; return Objects.equal(mAcl, that.mAcl) && (mCreateParent == that.mCreateParent) && (mEnsureAtomic == that.mEnsureAtomic) && Objects.equal(mOwner, that.mOwner) && Objects.equal(mGroup, that.mGroup) && Objects.equal(mMode, that.mMode); } private  CreateOptions(String authUmask); static CreateOptions defaults(AlluxioConfiguration conf); AccessControlList getAcl(); boolean getCreateParent(); String getOwner(); String getGroup(); Mode getMode(); boolean isEnsureAtomic(); CreateOptions setAcl(AccessControlList acl); CreateOptions setCreateParent(boolean createParent); CreateOptions setEnsureAtomic(boolean atomic); CreateOptions setOwner(String owner); CreateOptions setGroup(String group); CreateOptions setMode(Mode mode); @Override boolean equals(Object o); @Override int hashCode(); @Override String toString();  }