@Test public void testEquals() throws Exception { FileInfo fileInfo = new FileInfo(" ", 1, 1, true, (short) 1, 1, 1, 1, (short) 1, " ", " ", (byte) 1, (byte) 0); Assert.assertEquals(true, fileInfo.equals(fileInfo)); FileInfo fileInfo1 = new FileInfo(" ", 1, 1, true, (short) 1, 1, 1, 1, (short) 1, " ", " ", (byte) 1, (byte) 0); Assert.assertEquals(true, fileInfo.equals(fileInfo1)); FileInfo fileInfo2 = new FileInfo(" ", 1, 1, true, (short) 1, 1, 1, 1, (short) 1, null, " ", (byte) 1, (byte) 0); Assert.assertEquals(false, fileInfo.equals(fileInfo2)); Assert.assertEquals(false, fileInfo2.equals(fileInfo)); FileInfo fileInfo3 = new FileInfo(null, 1, 1, true, (short) 1, 1, 1, 1, (short) 1, " ", " ", (byte) 1, (byte) 0); Assert.assertEquals(false, fileInfo.equals(fileInfo3)); Assert.assertEquals(false, fileInfo3.equals(fileInfo)); FileInfo fileInfo4 = new FileInfo(null, 1, 1, true, (short) 1, 1, 1, 1, (short) 1, " ", null, (byte) 1, (byte) 0); Assert.assertEquals(false, fileInfo.equals(fileInfo4)); Assert.assertEquals(false, fileInfo4.equals(fileInfo)); FileInfo fileInfo5 = new FileInfo(" ", 1, 1, true, (short) 1, 1, 1, 1, (short) 2, " ", " ", (byte) 1, (byte) 0); Assert.assertEquals(false, fileInfo.equals(fileInfo5)); }
@Override public boolean equals(Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } FileInfo fileInfo = (FileInfo) o; return fileId == fileInfo.fileId && length == fileInfo.length && isdir == fileInfo.isdir && blockReplication == fileInfo.blockReplication && blocksize == fileInfo.blocksize && modificationTime == fileInfo.modificationTime && accessTime == fileInfo.accessTime && permission == fileInfo.permission && storagePolicy == fileInfo.storagePolicy && erasureCodingPolicy == fileInfo.erasureCodingPolicy && Objects.equals(path, fileInfo.path) && Objects.equals(owner, fileInfo.owner) && Objects.equals(group, fileInfo.group); }
FileInfo { @Override public boolean equals(Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } FileInfo fileInfo = (FileInfo) o; return fileId == fileInfo.fileId && length == fileInfo.length && isdir == fileInfo.isdir && blockReplication == fileInfo.blockReplication && blocksize == fileInfo.blocksize && modificationTime == fileInfo.modificationTime && accessTime == fileInfo.accessTime && permission == fileInfo.permission && storagePolicy == fileInfo.storagePolicy && erasureCodingPolicy == fileInfo.erasureCodingPolicy && Objects.equals(path, fileInfo.path) && Objects.equals(owner, fileInfo.owner) && Objects.equals(group, fileInfo.group); } }
FileInfo { @Override public boolean equals(Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } FileInfo fileInfo = (FileInfo) o; return fileId == fileInfo.fileId && length == fileInfo.length && isdir == fileInfo.isdir && blockReplication == fileInfo.blockReplication && blocksize == fileInfo.blocksize && modificationTime == fileInfo.modificationTime && accessTime == fileInfo.accessTime && permission == fileInfo.permission && storagePolicy == fileInfo.storagePolicy && erasureCodingPolicy == fileInfo.erasureCodingPolicy && Objects.equals(path, fileInfo.path) && Objects.equals(owner, fileInfo.owner) && Objects.equals(group, fileInfo.group); } FileInfo(String path, long fileId, long length, boolean isdir,
      short blockReplication, long blocksize, long modificationTime,
      long accessTime, short permission, String owner, String group,
      byte storagePolicy, byte erasureCodingPolicy); }
FileInfo { @Override public boolean equals(Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } FileInfo fileInfo = (FileInfo) o; return fileId == fileInfo.fileId && length == fileInfo.length && isdir == fileInfo.isdir && blockReplication == fileInfo.blockReplication && blocksize == fileInfo.blocksize && modificationTime == fileInfo.modificationTime && accessTime == fileInfo.accessTime && permission == fileInfo.permission && storagePolicy == fileInfo.storagePolicy && erasureCodingPolicy == fileInfo.erasureCodingPolicy && Objects.equals(path, fileInfo.path) && Objects.equals(owner, fileInfo.owner) && Objects.equals(group, fileInfo.group); } FileInfo(String path, long fileId, long length, boolean isdir,
      short blockReplication, long blocksize, long modificationTime,
      long accessTime, short permission, String owner, String group,
      byte storagePolicy, byte erasureCodingPolicy); String getPath(); void setPath(String path); long getFileId(); void setFileId(long fileId); long getLength(); void setLength(long length); boolean isdir(); void setIsdir(boolean isdir); short getBlockReplication(); void setBlockReplication(short blockReplication); long getBlocksize(); void setBlocksize(long blocksize); long getModificationTime(); void setModificationTime(long modificationTime); long getAccessTime(); void setAccessTime(long accessTime); short getPermission(); void setPermission(short permission); String getOwner(); void setOwner(String owner); String getGroup(); void setGroup(String group); byte getStoragePolicy(); void setStoragePolicy(byte storagePolicy); byte getErasureCodingPolicy(); void setErasureCodingPolicy(byte erasureCodingPolicy); @Override boolean equals(Object o); @Override int hashCode(); static Builder newBuilder(); @Override String toString(); }
FileInfo { @Override public boolean equals(Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } FileInfo fileInfo = (FileInfo) o; return fileId == fileInfo.fileId && length == fileInfo.length && isdir == fileInfo.isdir && blockReplication == fileInfo.blockReplication && blocksize == fileInfo.blocksize && modificationTime == fileInfo.modificationTime && accessTime == fileInfo.accessTime && permission == fileInfo.permission && storagePolicy == fileInfo.storagePolicy && erasureCodingPolicy == fileInfo.erasureCodingPolicy && Objects.equals(path, fileInfo.path) && Objects.equals(owner, fileInfo.owner) && Objects.equals(group, fileInfo.group); } FileInfo(String path, long fileId, long length, boolean isdir,
      short blockReplication, long blocksize, long modificationTime,
      long accessTime, short permission, String owner, String group,
      byte storagePolicy, byte erasureCodingPolicy); String getPath(); void setPath(String path); long getFileId(); void setFileId(long fileId); long getLength(); void setLength(long length); boolean isdir(); void setIsdir(boolean isdir); short getBlockReplication(); void setBlockReplication(short blockReplication); long getBlocksize(); void setBlocksize(long blocksize); long getModificationTime(); void setModificationTime(long modificationTime); long getAccessTime(); void setAccessTime(long accessTime); short getPermission(); void setPermission(short permission); String getOwner(); void setOwner(String owner); String getGroup(); void setGroup(String group); byte getStoragePolicy(); void setStoragePolicy(byte storagePolicy); byte getErasureCodingPolicy(); void setErasureCodingPolicy(byte erasureCodingPolicy); @Override boolean equals(Object o); @Override int hashCode(); static Builder newBuilder(); @Override String toString();  }