Class Category


  • public final class Category
    extends Object
    A filter category is like a folder, it describes the type of the filter and bring together to users filters that have the same categories.

    Default categories are defined in the filter library:

    • FilterLibrary.TOPOLOGY
    • FilterLibrary.ATTRIBUTES
    • FilterLibrary.EDGE
    • FilterLibrary.HIERARCHY
    Author:
    Mathieu Bastian
    See Also:
    FilterLibrary
    • Constructor Detail

      • Category

        public Category​(String name)
      • Category

        public Category​(String name,
                        Icon icon)
    • Method Detail

      • getName

        public String getName()
        Returns the category's name.
        Returns:
        the name of this category
      • getIcon

        public Icon getIcon()
        Returns the icon or null if the category has no icon.
        Returns:
        the icon or null
      • getParent

        public Category getParent()
        Returns this category parent category or null if this category has no parent.
        Returns:
        this category's parent or null
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object