Advertisement
Guest User

Untitled

a guest
Apr 7th, 2020
429
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.84 KB | None | 0 0
  1. public enum BooleanRecordsOperatorFactory implements RecordsOperatorFactory<Boolean> {
  2.     /**
  3.      * supports [singleBoolean, singleDouble] operations
  4.      */
  5.     BOOLEAN_EQUAL_TO(OperatorEqualTo::new),
  6.  
  7.     /**
  8.      * At least r% contains value [multipleBoolean, multiplyDouble] operations
  9.      */
  10.     BOOLEAN_AT_LEAST_CONTAINS_VALUE(OperatorAtLeastEqualTo::new),
  11.  
  12.     /**
  13.      * Lack more than X records [multipleBoolean, multipleDouble] operations
  14.      */
  15.     BOOLEAN_LACK_MORE_THAN(BooleanOperatorLackMoreThan::new);
  16.  
  17.  
  18.     private Supplier<RecordsOperator<Boolean>> supplier;
  19.  
  20.     BooleanRecordsOperatorFactory(
  21.             Supplier<RecordsOperator<Boolean>> supplier
  22.     ) {
  23.         this.supplier = supplier;
  24.     }
  25.  
  26.  
  27.     public RecordsOperator<Boolean> createRecordsOperator() {
  28.         return this.supplier.get();
  29.     }
  30.  
  31. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement