Class ComponentTypes

  • All Implemented Interfaces:, 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
        The first ordinal
      • allSetLike

        public boolean allSetLike​(ComponentTypes other)
        Checks if all the t bits in this bit set are also set in other.
        other - The bit set to check against
        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()
        toString in class java.util.BitSet