Exemple #1
0
 public static Builder fromDriveInfo(DriveInfo in) {
   return new Builder()
       .uuid(in.getUuid())
       .name(in.getName())
       .size(in.getSize())
       .claimType(in.getClaimType())
       .readers(in.getReaders())
       .use(in.getUse())
       .status(in.getStatus())
       .user(in.getUser())
       .claimed(in.getClaimed())
       .encryptionCipher(in.getEncryptionCipher())
       .imaging(in.getImaging())
       .metrics(in.getMetrics())
       .autoexpanding(in.getAutoexpanding())
       .bits(in.getBits())
       .description(in.getDescription())
       .encryptionKey(in.getEncryptionKey())
       .free(in.getFree())
       .installNotes(in.getInstallNotes())
       .type(in.getType())
       .url(in.getUrl());
 }
 @Override
 public boolean apply(DriveInfo drive) {
   return drive.getType().equals(DriveType.DISK)
       && drive.getDriveType().contains("preinstalled");
 }