Class CodomainMapContext

    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected int intervalEnd
      The upper bound of the codomain interval.
      protected int intervalStart
      The lower bound of the codomain interval.
    • Method Summary

      All Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method Description
      abstract CodomainMapContext copy()
      Returns a deep copy of this object.
      boolean equals​(java.lang.Object o)
      This method is overridden so that objects of the same class are considered the same.
      void setCodomain​(int intervalStart, int intervalEnd)
      Sets the codomain interval.
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • intervalStart

        protected int intervalStart
        The lower bound of the codomain interval.
      • intervalEnd

        protected int intervalEnd
        The upper bound of the codomain interval.
    • Constructor Detail

      • CodomainMapContext

        public CodomainMapContext()
    • Method Detail

      • setCodomain

        public void setCodomain​(int intervalStart,
                                int intervalEnd)
        Sets the codomain interval. No checks are needed as this method is controlled by the codomainChain, which passes in consistent values.
        Parameters:
        intervalStart - The lower bound of the codomain interval.
        intervalEnd - The upper bound of the codomain interval.
      • equals

        public final boolean equals​(java.lang.Object o)
        This method is overridden so that objects of the same class are considered the same. We need this trick to hanlde nicely CodomainMapContext objects in collections.
        Overrides:
        equals in class java.lang.Object
        See Also:
        Object.equals(Object)
      • copy

        public abstract CodomainMapContext copy()
        Returns a deep copy of this object.
        Returns:
        See above.