Enum CaiPanelInfo

    • Method Detail

      • values

        public static CaiPanelInfo[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (CaiPanelInfo c : CaiPanelInfo.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static CaiPanelInfo valueOf​(String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        Parameters:
        name - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        IllegalArgumentException - if this enum type has no constant with the specified name
        NullPointerException - if the argument is null
      • getByName

        public static CaiPanelInfo getByName​(String name)
        Get panel info by given panel name
        Parameters:
        panel - the panel name, cannot be null
        Returns:
        panel info, or null if no panel info appropriate for given panel.
      • getByUuid

        public static CaiPanelInfo getByUuid​(UUID uuid)
        Get panel info by given panel uuid
        Parameters:
        panel - the panel uuid, cannot be null
        Returns:
        panel info, or null if no panel info appropriate for given panel.
      • getByPanel

        public static CaiPanelInfo getByPanel​(CaiPanel panel)
        Get panel info by given panel
        Parameters:
        panel - the panel, cannot be null
        Returns:
        panel info, or null if no panel info appropriate for given panel.
      • getUUID

        public UUID getUUID()
        UUID of panel info
        Returns:
        the UUID of panel info
      • getName

        public String getName()
        Name of panel info
        Returns:
        the name of panel info
      • find

        public CaiPanel find​(List<CaiPanel> panels)
        Find first panel appropriate to panel info from given list
        Parameters:
        panels - the list of panel for search in, cannot be null
        Returns:
        first panal appopriate to panel info, or null