Class ComponentTypes

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Cloneable

    public class ComponentTypes
    extends java.util.BitSet
    BitSet with some added functionality
    See Also:
    Serialized Form
    • Constructor Detail

      • ComponentTypes

        public ComponentTypes()
      • ComponentTypes

        public ComponentTypes​(int ordinal)
    • Method Detail

      • getFirstOrdinal

        public int getFirstOrdinal()
        Returns the index of the rightmost bit set to 1. If no bits are set to 1, returns -1
        Returns:
        The first ordinal
      • allSetLike

        public boolean allSetLike​(ComponentTypes other)
        Checks if all the t bits in this bit set are also set in other.
        Parameters:
        other - The bit set to check against
        Returns:
        True if all the bits set to true in this bit set are also true in other. Returns false otherwise
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.util.BitSet