Interface Palette.Mutable<M,​MR>

  • All Superinterfaces:
    Palette<M,​MR>
    Enclosing interface:
    Palette<T,​R>

    public static interface Palette.Mutable<M,​MR>
    extends Palette<M,​MR>
    • Method Detail

      • orAssign

        int orAssign​(M type)
        Gets the identifier for the given type T from the mapping. If the type T is not yet registered in the mapping then it is registered and given the next available identifier.
        Parameters:
        type - The type
        Returns:
        The identifier
      • remove

        boolean remove​(M type)
        Removes the given type T from the mapping.

        Note that if this palette is considered a global palette, removal is not supported.

        Parameters:
        type - The type to remove
        Returns:
        If the type existed in the mapping