@Test public void testEquals() throws Exception { FileInfo fileInfo = FileInfoTest.createRandom(); URIStatus uriStatus1 = new URIStatus(fileInfo); URIStatus uriStatus2 = new URIStatus(fileInfo); assertTrue(uriStatus1.equals(uriStatus2)); assertEquals(uriStatus1.hashCode(), uriStatus2.hashCode()); }
@Override public boolean equals(Object o) { if (this == o) { return true; } if (!(o instanceof URIStatus)) { return false; } URIStatus that = (URIStatus) o; return mInfo.equals(that.mInfo); }
URIStatus { @Override public boolean equals(Object o) { if (this == o) { return true; } if (!(o instanceof URIStatus)) { return false; } URIStatus that = (URIStatus) o; return mInfo.equals(that.mInfo); } }
URIStatus { @Override public boolean equals(Object o) { if (this == o) { return true; } if (!(o instanceof URIStatus)) { return false; } URIStatus that = (URIStatus) o; return mInfo.equals(that.mInfo); } URIStatus(FileInfo info); }
URIStatus { @Override public boolean equals(Object o) { if (this == o) { return true; } if (!(o instanceof URIStatus)) { return false; } URIStatus that = (URIStatus) o; return mInfo.equals(that.mInfo); } URIStatus(FileInfo info); AccessControlList getAcl(); DefaultAccessControlList getDefaultAcl(); @Nullable BlockInfo getBlockInfo(long blockId); List<Long> getBlockIds(); long getBlockSizeBytes(); long getCreationTimeMs(); long getFileId(); String getFileIdentifier(); String getGroup(); int getInMemoryPercentage(); int getInAlluxioPercentage(); long getLastModificationTimeMs(); long getLastAccessTimeMs(); long getLength(); String getName(); String getPath(); int getMode(); String getPersistenceState(); long getTtl(); TtlAction getTtlAction(); String getUfsPath(); String getOwner(); int getReplicationMax(); int getReplicationMin(); boolean isCacheable(); boolean isCompleted(); boolean isFolder(); boolean isPersisted(); boolean isPinned(); Set<String> getPinnedMediumTypes(); boolean isMountPoint(); long getMountId(); List<FileBlockInfo> getFileBlockInfos(); String getUfsFingerprint(); Map<String, byte[]> getXAttr(); FileInfo getFileInfo(); @Override boolean equals(Object o); @Override int hashCode(); @Override String toString(); }
URIStatus { @Override public boolean equals(Object o) { if (this == o) { return true; } if (!(o instanceof URIStatus)) { return false; } URIStatus that = (URIStatus) o; return mInfo.equals(that.mInfo); } URIStatus(FileInfo info); AccessControlList getAcl(); DefaultAccessControlList getDefaultAcl(); @Nullable BlockInfo getBlockInfo(long blockId); List<Long> getBlockIds(); long getBlockSizeBytes(); long getCreationTimeMs(); long getFileId(); String getFileIdentifier(); String getGroup(); int getInMemoryPercentage(); int getInAlluxioPercentage(); long getLastModificationTimeMs(); long getLastAccessTimeMs(); long getLength(); String getName(); String getPath(); int getMode(); String getPersistenceState(); long getTtl(); TtlAction getTtlAction(); String getUfsPath(); String getOwner(); int getReplicationMax(); int getReplicationMin(); boolean isCacheable(); boolean isCompleted(); boolean isFolder(); boolean isPersisted(); boolean isPinned(); Set<String> getPinnedMediumTypes(); boolean isMountPoint(); long getMountId(); List<FileBlockInfo> getFileBlockInfos(); String getUfsFingerprint(); Map<String, byte[]> getXAttr(); FileInfo getFileInfo(); @Override boolean equals(Object o); @Override int hashCode(); @Override String toString();  }