Interface CapacityCarrying

    • Method Summary

      Modifier and Type Method Description
      default boolean isFull()
      Returns true if the current capacity cannot be increased any more.
      long maximumCapacity()
      Returns the maximum amount of elements this carrier instance can contain.
      The actual value may be depend on the configuration of the concrete instance or may depend only on the implementation of the carrier (meaning it is constant for all instances of the implementation, e.g.
      default long remainingCapacity()
      Returns the amount of elements this carrier instance can collect before reaching its maximimum capacity.
      • Methods inherited from interface one.microstream.collections.interfaces.Sized

        isEmpty, size
    • Method Detail

      • maximumCapacity

        long maximumCapacity()
        Returns the maximum amount of elements this carrier instance can contain.
        The actual value may be depend on the configuration of the concrete instance or may depend only on the implementation of the carrier (meaning it is constant for all instances of the implementation, e.g. Integer.MAX_VALUE)
        Returns:
        the maximum amount of elements this carrier instance can contain.
      • remainingCapacity

        default long remainingCapacity()
        Returns the amount of elements this carrier instance can collect before reaching its maximimum capacity.
      • isFull

        default boolean isFull()
        Returns true if the current capacity cannot be increased any more.