Class SerializablePredicate.All

java.lang.Object
com.loomcache.common.protocol.SerializablePredicate.All
All Implemented Interfaces:
SerializablePredicate
Enclosing interface:
SerializablePredicate

public static final class SerializablePredicate.All extends Object implements SerializablePredicate
Matches every entry.
Since:
2.0
  • Method Details

    • test

      public boolean test(String key, @Nullable String value)
      Description copied from interface: SerializablePredicate
      Test whether the predicate matches the given entry.
      Specified by:
      test in interface SerializablePredicate
      Parameters:
      key - the entry key (non-null — decoded map keys are always non-null)
      value - the entry value (may be null for REMOVED events)
      Returns:
      true if the entry matches
    • encode

      public byte[] encode()
      Description copied from interface: SerializablePredicate
      Encode this predicate into a newly-allocated byte array.
      Specified by:
      encode in interface SerializablePredicate
    • toString

      public String toString()
      Overrides:
      toString in class Object