Class Category


  • public final class Category
    extends Object
    Immutable class representing a category in a MAL language.
    Since:
    1.0.0
    • Method Detail

      • getName

        public String getName()
        Returns the name of this Category object.
        Returns:
        the name of this Category object
        Since:
        1.0.0
      • getMeta

        public Meta getMeta()
        Returns the meta info of this Category object.
        Returns:
        the meta info of this Category object
        Since:
        1.0.0
      • hasAsset

        public boolean hasAsset​(String name)
        Returns whether name is the name of an asset in this Category object.
        Parameters:
        name - the name of the asset
        Returns:
        whether name is the name of an asset in this Category object
        Throws:
        NullPointerException - if name is null
        Since:
        1.0.0
      • getAsset

        public Asset getAsset​(String name)
        Returns the asset with the name name in this Category object.
        Parameters:
        name - the name of the asset
        Returns:
        the asset with the name name in this Category object
        Throws:
        NullPointerException - if name is null
        IllegalArgumentException - if name is not the name of an asset in this Category object
        Since:
        1.0.0
      • getAssets

        public List<Asset> getAssets()
        Returns a list of all assets in this Category object.
        Returns:
        a list of all assets in this Category object
        Since:
        1.0.0