Code example for Predicate

Methods: apply

0
      Predicates2.startsWith("---- BEGIN SSH2 PUBLIC KEY ----")); 
 
   @Override 
   public String apply(Object from) {
      String fromString = checkNotNull(from, "input").toString();
      checkArgument(ALLOWED_MARKERS.apply(fromString), "must be a ssh public key, conforming to %s ", ALLOWED_MARKERS);
      return base64().encode(fromString.getBytes(UTF_8));
   } 
} 
Connect your IDE to all the code out there  Get Codota for Java