Class BucketDefinition.Bucket

  • All Implemented Interfaces:
    java.lang.Comparable<java.lang.Object>
    Direct Known Subclasses:
    BucketDefinition.OrderDecoratorBucket
    Enclosing class:
    BucketDefinition

    public class BucketDefinition.Bucket
    extends java.lang.Object
    implements java.lang.Comparable<java.lang.Object>
    Bucket value class.
    Author:
    Lucian Chirita (lucianc@users.sourceforge.net)
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      protected Bucket​(byte type)
      Creates a bucket for a value type.
      protected Bucket​(java.lang.Object value)
      Creates a bucket for a value.
        Bucket​(java.lang.Object value, byte type)  
    • Constructor Detail

      • Bucket

        protected Bucket​(byte type)
        Creates a bucket for a value type.
        Parameters:
        type - the value type
      • Bucket

        protected Bucket​(java.lang.Object value)
        Creates a bucket for a value.
        Parameters:
        value - the value
      • Bucket

        public Bucket​(java.lang.Object value,
                      byte type)
    • Method Detail

      • getValue

        public java.lang.Object getValue()
        Returns the bucket value.
        Returns:
        the bucket value
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

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

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • compareTo

        public int compareTo​(java.lang.Object o)
        Specified by:
        compareTo in interface java.lang.Comparable<java.lang.Object>
      • isTotal

        public boolean isTotal()
        Decides whether this is a total bucket.
        Returns:
        whether this is a total bucket