Class FeatureRange

  • All Implemented Interfaces:
    java.lang.Cloneable

    public class FeatureRange
    extends Predicate
    Author:
    Simon Thoresen Hult
    • Constructor Detail

      • FeatureRange

        public FeatureRange​(java.lang.String key)
      • FeatureRange

        public FeatureRange​(java.lang.String key,
                            java.lang.Long fromInclusive,
                            java.lang.Long toInclusive)
    • Method Detail

      • setKey

        public FeatureRange setKey​(java.lang.String key)
      • getKey

        public java.lang.String getKey()
      • setFromInclusive

        public FeatureRange setFromInclusive​(java.lang.Long from)
      • getFromInclusive

        public java.lang.Long getFromInclusive()
      • setToInclusive

        public FeatureRange setToInclusive​(java.lang.Long to)
      • getToInclusive

        public java.lang.Long getToInclusive()
      • getPartitions

        public java.util.List<RangePartition> getPartitions()
      • clearPartitions

        public void clearPartitions()
      • clone

        public FeatureRange clone()
                           throws java.lang.CloneNotSupportedException
        Overrides:
        clone in class Predicate
        Throws:
        java.lang.CloneNotSupportedException
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
      • appendTo

        protected void appendTo​(java.lang.StringBuilder out)
        Specified by:
        appendTo in class Predicate
      • buildFromMixedIn

        public static FeatureRange buildFromMixedIn​(java.lang.String key,
                                                    java.util.List<java.lang.String> partitions,
                                                    int arity)