@Test public void copy() { Random random = new Random(); String contentHash = CommonUtils.randomAlphaNumString(10); long contentLength = random.nextLong(); long lastModifiedTimeMs = random.nextLong(); short mode = 077; long blockSize = random.nextLong(); UfsFileStatus statusToCopy = new UfsFileStatus("name", contentHash, contentLength, lastModifiedTimeMs, "owner", "group", mode, blockSize); UfsFileStatus status = new UfsFileStatus(statusToCopy); assertEquals(statusToCopy, status); }
@Override public UfsFileStatus copy() { return new UfsFileStatus(this); }
UfsFileStatus extends UfsStatus { @Override public UfsFileStatus copy() { return new UfsFileStatus(this); } }
UfsFileStatus extends UfsStatus { @Override public UfsFileStatus copy() { return new UfsFileStatus(this); } UfsFileStatus(String name, String contentHash, long contentLength, long lastModifiedTimeMs,
      String owner, String group, short mode, @Nullable Map<String, byte[]> xAttr, long blockSize);  UfsFileStatus(String name, String contentHash, long contentLength, long lastModifiedTimeMs,
      String owner, String group, short mode, long blockSize); @Deprecated  UfsFileStatus(String name, String contentHash, long contentLength, long lastModifiedTimeMs,
      String owner, String group, short mode, @Nullable Map<String, byte[]> xAttr); @Deprecated  UfsFileStatus(String name, String contentHash, long contentLength, long lastModifiedTimeMs,
      String owner, String group, short mode);  UfsFileStatus(UfsFileStatus status); }
UfsFileStatus extends UfsStatus { @Override public UfsFileStatus copy() { return new UfsFileStatus(this); } UfsFileStatus(String name, String contentHash, long contentLength, long lastModifiedTimeMs,
      String owner, String group, short mode, @Nullable Map<String, byte[]> xAttr, long blockSize);  UfsFileStatus(String name, String contentHash, long contentLength, long lastModifiedTimeMs,
      String owner, String group, short mode, long blockSize); @Deprecated  UfsFileStatus(String name, String contentHash, long contentLength, long lastModifiedTimeMs,
      String owner, String group, short mode, @Nullable Map<String, byte[]> xAttr); @Deprecated  UfsFileStatus(String name, String contentHash, long contentLength, long lastModifiedTimeMs,
      String owner, String group, short mode);  UfsFileStatus(UfsFileStatus status); @Override UfsFileStatus copy(); String getContentHash(); long getContentLength(); long getBlockSize(); @Override String toString(); }
UfsFileStatus extends UfsStatus { @Override public UfsFileStatus copy() { return new UfsFileStatus(this); } UfsFileStatus(String name, String contentHash, long contentLength, long lastModifiedTimeMs,
      String owner, String group, short mode, @Nullable Map<String, byte[]> xAttr, long blockSize);  UfsFileStatus(String name, String contentHash, long contentLength, long lastModifiedTimeMs,
      String owner, String group, short mode, long blockSize); @Deprecated  UfsFileStatus(String name, String contentHash, long contentLength, long lastModifiedTimeMs,
      String owner, String group, short mode, @Nullable Map<String, byte[]> xAttr); @Deprecated  UfsFileStatus(String name, String contentHash, long contentLength, long lastModifiedTimeMs,
      String owner, String group, short mode);  UfsFileStatus(UfsFileStatus status); @Override UfsFileStatus copy(); String getContentHash(); long getContentLength(); long getBlockSize(); @Override String toString(); static final String INVALID_CONTENT_HASH; static final long UNKNOWN_BLOCK_SIZE; }