Interface Operations<T>

Type Parameters:
T - the operable object type
All Known Subinterfaces:
CollectionOperations<V,C>
All Known Implementing Classes:
MapOperations, SetOperations

public interface Operations<T>
Defines operations for creating and copying an operable object.
Author:
Paul Ferraro
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns an operator used to copy the operable object (for copy-on-write operations).
    Returns a factory for creating the operable object (for set-if-absent operations).
    Returns the predicate used to determine if the operable object is empty.
  • Method Details

    • getCopier

      UnaryOperator<T> getCopier()
      Returns an operator used to copy the operable object (for copy-on-write operations).
      Returns:
      an operator used to copy the operable object (for copy-on-write operations).
    • getFactory

      Supplier<T> getFactory()
      Returns a factory for creating the operable object (for set-if-absent operations).
      Returns:
      a factory for creating the operable object (for set-if-absent operations).
    • isEmpty

      Predicate<T> isEmpty()
      Returns the predicate used to determine if the operable object is empty.
      Returns:
      the predicate used to determine if the operable object is empty.