Source of 2.19.java


  1: 
  2:         /** Sees whether this bag is empty.
  3:             @return  True if this bag is empty, or false if not. */
  4:         public boolean isEmpty() 
  5:         {
  6:                 return numberOfEntries == 0;
  7:         } // end isEmpty
  8: 
  9:         /** Gets the current number of objects in this bag.
 10:                  @return  The integer number of objects currently in the bag. */
 11:         public int getCurrentSize() 
 12:         {
 13:                 return numberOfEntries;
 14:         } // end getCurrentSize
 15: