Enum Class SeekType

java.lang.Object
java.lang.Enum<SeekType>
org.gnome.glib.SeekType
All Implemented Interfaces:
Serializable, Comparable<SeekType>, Constable, Enumeration

@Generated("org.javagi.JavaGI") public enum SeekType extends Enum<SeekType> implements Enumeration
An enumeration specifying the base position for a g_io_channel_seek_position() operation.
  • Enum Constant Details

    • CUR

      public static final SeekType CUR
      the current position in the file.
    • SET

      public static final SeekType SET
      the start of the file.
    • END

      public static final SeekType END
      the end of the file.
  • Method Details

    • values

      public static SeekType[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static SeekType valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • of

      public static SeekType of(int value)
      Create a new SeekType for the provided value
      Parameters:
      value - the enum value
      Returns:
      the enum for the provided value
    • getValue

      public int getValue()
      Get the numeric value of this enum
      Specified by:
      getValue in interface Enumeration
      Returns:
      the enum value
    • of

      public static SeekType of(MemorySegment address)
      Create a new SeekType for the value in the provided memory address.
      Parameters:
      address - the memory address holding a enum value
      Returns:
      the enum for the value in the provided memory address