Class Bucket

    • Constructor Summary

      Constructors 
      Constructor Description
      Bucket​(java.lang.String localIdentifier, java.util.List<BucketItem> items)
      Creates new instance of bucket without totals
      Bucket​(java.lang.String localIdentifier, java.util.List<BucketItem> items, java.util.List<TotalItem> totals)
      Creates new instance of bucket
    • Constructor Detail

      • Bucket

        public Bucket​(java.lang.String localIdentifier,
                      java.util.List<BucketItem> items)
        Creates new instance of bucket without totals
        Parameters:
        localIdentifier - local identifier of bucket
        items - list of BucketItems for this bucket
      • Bucket

        public Bucket​(java.lang.String localIdentifier,
                      java.util.List<BucketItem> items,
                      java.util.List<TotalItem> totals)
        Creates new instance of bucket
        Parameters:
        localIdentifier - local identifier of bucket
        items - list of BucketItems for this bucket
        totals - list of TotalItems for this bucket
    • Method Detail

      • getTotals

        public java.util.List<TotalItem> getTotals()
        Returns:
        list of defined TotalItems
      • 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