code: public static BooleanIterator generate(final BooleanSupplier supplier) {
          N.checkArgNotNull(supplier);
  
          return new BooleanIterator() {
              @Override
              public boolean hasNext() {
                  return true;
              }
  
              @Override
              public boolean nextBoolean() {
                  return supplier.getAsBoolean();
              }
          };
      }
docs: Returns an infinite {@code BooleanIterator}.
  
  @param supplier
  @return