Class Endpoint<T>


  • public class Endpoint<T>
    extends Object
    A poor-man's version of guava's internal Cut class
    • Field Detail

      • value

        protected T value
      • boundType

        protected com.google.common.collect.BoundType boundType
    • Constructor Detail

      • Endpoint

        public Endpoint​(T value,
                        com.google.common.collect.BoundType boundType)
    • Method Detail

      • getValue

        public T getValue()
      • getBoundType

        public com.google.common.collect.BoundType getBoundType()
      • toggleBoundType

        public Endpoint<T> toggleBoundType()
        Create a new endpoint with the bound type toggled. Has no effect and returns 'this' if the value is null.
      • hasValue

        public boolean hasValue()
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object