Class CategoryCounters

java.lang.Object
se.datadosen.jalbum.CategoryCounters
Direct Known Subclasses:
RejectCounterFilter

public class CategoryCounters extends Object
Collection of counters representing the frequency of different object categories
Since:
11.1
See Also:
  • Constructor Details

    • CategoryCounters

      public CategoryCounters()
    • CategoryCounters

      public CategoryCounters(CategoryCounters original)
      Copy constructor
      Parameters:
      original -
      Since:
      33.2
  • Method Details

    • increase

      public CategoryCounters increase(Category category)
    • add

      public CategoryCounters add(Category category, int value)
    • add

    • getCount

      public int getCount(Category category)
      Parameters:
      category - Category to get count for
      Returns:
      Count of all objects of the specified category
    • getFileCount

      public int getFileCount()
      Returns:
      Count of all objects except folders
    • getTotalCount

      public int getTotalCount()
      Returns:
      Count of all objects, no matter the category
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • addPropertyChangeListener

      public void addPropertyChangeListener(PropertyChangeListener listener)
    • removePropertyChangeListener

      public void removePropertyChangeListener(PropertyChangeListener listener)
      Removes a PropertyChangeListener from the listener list. This method should be used to remove PropertyChangeListeners that were registered for all bound properties of this class.

      If listener is null, no exception is thrown and no action is performed.

      Parameters:
      listener - the PropertyChangeListener to be removed
      See Also:
    • addPropertyChangeListener

      public void addPropertyChangeListener(Category category, PropertyChangeListener listener)
    • firePropertyChange

      protected void firePropertyChange(String propertyName, Object oldValue, Object newValue)
      Support for reporting bound property changes for Object properties. This method can be called when a bound property has changed and it will send the appropriate PropertyChangeEvent to any registered PropertyChangeListeners.
      Parameters:
      propertyName - the property whose value has changed
      oldValue - the property's previous value
      newValue - the property's new value