Enum Segment.SegType

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable<Segment.SegType>
    Enclosing class:
    Segment

    public static enum Segment.SegType
    extends java.lang.Enum<Segment.SegType>
    • Field Detail

      • flags

        public final int flags
    • Method Detail

      • values

        public static Segment.SegType[] 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 (Segment.SegType c : Segment.SegType.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static Segment.SegType valueOf​(java.lang.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:
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        java.lang.NullPointerException - if the argument is null
      • hasAll

        public boolean hasAll​(int flags)
      • hasLength

        public boolean hasLength()
      • hasOffset

        public boolean hasOffset()
      • hasBoth

        public boolean hasBoth()
      • hasChar

        public boolean hasChar()
      • hasChars

        public boolean hasChars()
      • hasByte

        public boolean hasByte()
      • hasBytes

        public boolean hasBytes()
      • fromTypeMask

        public static Segment.SegType fromTypeMask​(int segTypeMask)