Interface Extent<P>

  • All Superinterfaces:
    Domain<P>, Serializable

    public interface Extent<P>
    extends Domain<P>, Serializable

    Defines a contiguous domain that is defined by "low" and "high" bounds. Any value (inclusively) between these values is considered part of the domain. A null value for "low" or "high" indicates that the extent is unbounded at that end. If both values are null and the Extent is not empty (i.e. isEmpty() returns false), then the Extent includes all possible values of P, with the exception of NaN values where P is numerical.

    Author:
    Jon Blower, Guy
    • Method Detail

      • getLow

        P getLow()
        Returns:
        The low bound of this Extent
      • getHigh

        P getHigh()
        Returns:
        The high bound of this Extent
      • isEmpty

        boolean isEmpty()
        Returns:
        Whether or not this is an empty Extent - empty Extents are defined as containing no values and overlapping no other Extents, and null will be returnedfor both getHigh() and getLow()
      • intersects

        boolean intersects​(Extent<P> otherExtent)
        Tests whether this extent overlaps with another
        Parameters:
        otherExtent - The other Extent to test
        Returns:
        true if the supplied Extent is wholly or partially contained within this one