Interface PortablePredicate<T>

Type Parameters:
T - the type of input to the Remote.Predicate
All Superinterfaces:
PortableObject, Predicate<T>, Remote.Predicate<T>, Serializable
All Known Implementing Classes:
Predicates.AlwaysPredicate, Predicates.EqualToPredicate, Predicates.IsValuePredicate, Predicates.NegatePredicate, Predicates.NeverPredicate, Predicates.NullValuePredicate, Predicates.OptionPredicate, Predicates.RolePredicate, Predicates.ThrowablePredicate

public interface PortablePredicate<T> extends Remote.Predicate<T>, PortableObject
Represents a portable Remote.Predicate (boolean-valued function) with a single argument; a convenience interface for an implementation with no properties that require serialization.
Since:
21.12
Author:
lh
  • Method Summary

    Modifier and Type
    Method
    Description
    default void
    Restore the contents of a user type instance by reading its state using the specified PofReader object.
    default void
    Save the contents of a POF user type instance by writing its state using the specified PofWriter object.

    Methods inherited from interface java.util.function.Predicate

    and, or, test

    Methods inherited from interface com.tangosol.util.function.Remote.Predicate

    and, negate, or
  • Method Details

    • readExternal

      default void readExternal(PofReader pofReader) throws IOException
      Description copied from interface: PortableObject
      Restore the contents of a user type instance by reading its state using the specified PofReader object.
      Specified by:
      readExternal in interface PortableObject
      Parameters:
      pofReader - the PofReader from which to read the object's state
      Throws:
      IOException - if an I/O error occurs
    • writeExternal

      default void writeExternal(PofWriter pofWriter) throws IOException
      Description copied from interface: PortableObject
      Save the contents of a POF user type instance by writing its state using the specified PofWriter object.
      Specified by:
      writeExternal in interface PortableObject
      Parameters:
      pofWriter - the PofWriter to which to write the object's state
      Throws:
      IOException - if an I/O error occurs