Enum DX10DXGIFormat

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable<DX10DXGIFormat>

    public enum DX10DXGIFormat
    extends java.lang.Enum<DX10DXGIFormat>
    Enum that lists a certain types of DXGI Format this reader supports to read. DXGI Format List
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private DDSType ddsType  
      private java.util.function.IntPredicate dxgiFormat  
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private DX10DXGIFormat​(DDSType ddsType, java.util.function.IntPredicate dxgiFormat)  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      private static java.util.function.IntPredicate exactly​(int... acceptedValues)  
      (package private) DDSType getCorrespondingType()  
      (package private) static DX10DXGIFormat getFormat​(int value)  
      private static java.util.function.IntPredicate rangeInclusive​(int from, int to)  
      static DX10DXGIFormat valueOf​(java.lang.String name)
      Returns the enum constant of this type with the specified name.
      static DX10DXGIFormat[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      • Methods inherited from class java.lang.Enum

        clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
      • Methods inherited from class java.lang.Object

        getClass, notify, notifyAll, wait, wait, wait
    • Field Detail

      • ddsType

        private final DDSType ddsType
      • dxgiFormat

        private final java.util.function.IntPredicate dxgiFormat
    • Constructor Detail

      • DX10DXGIFormat

        private DX10DXGIFormat​(DDSType ddsType,
                               java.util.function.IntPredicate dxgiFormat)
    • Method Detail

      • values

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

        public static DX10DXGIFormat 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
      • getCorrespondingType

        DDSType getCorrespondingType()
      • exactly

        private static java.util.function.IntPredicate exactly​(int... acceptedValues)
        Parameters:
        acceptedValues - values in DXGI Formats List, passed values are expected to be in ascending order
      • rangeInclusive

        private static java.util.function.IntPredicate rangeInclusive​(int from,
                                                                      int to)