public boolean copyValue(FileAttribute attr){
  if (attr == null) {
    return false;
  }
  attr.setFileSize(size);
  attr.setResourceID(resourceId);
  attr.setOwnerName(ownerName);
  attr.setUpdateTime(lastUpdateTime);
  attr.setRegistrationId(id);
  attr.setType(type);
  attr.setChecksum(checksum);
  attr.setCost(cost);
  attr.setMasterCopy(masterCopy);
  attr.setReadOnly(readOnly);
  attr.setName(name);
  attr.setCreationTime(creationTime);
  return true;
}

public boolean copyValue ( FileAttribute attr ) { if ( attr == null ) { return false ; } attr . setFileSize ( size ) ; attr . setResourceID ( resourceId ) ; attr . setOwnerName ( ownerName ) ; attr . setUpdateTime ( lastUpdateTime ) ; attr . setRegistrationId ( id ) ; attr . setType ( type ) ; attr . setChecksum ( checksum ) ; attr . setCost ( cost ) ; attr . setMasterCopy ( masterCopy ) ; attr . setReadOnly ( readOnly ) ; attr . setName ( name ) ; attr . setCreationTime ( creationTime ) ; return true ; }
copy the values of the object into a given fileattribute instance .
