Enum Class TransferOwnership

java.lang.Object
java.lang.Enum<TransferOwnership>
org.javagi.base.TransferOwnership
All Implemented Interfaces:
Serializable, Comparable<TransferOwnership>, Constable

public enum TransferOwnership extends Enum<TransferOwnership>
Types of ownership transfer used by GObject-Introspection for many elements, for example, a returned value.
  • Enum Constant Details

    • NONE

      public static final TransferOwnership NONE
      The recipient does not own the value
    • CONTAINER

      public static final TransferOwnership CONTAINER
      The recipient owns the container but not the values
    • VALUES

      public static final TransferOwnership VALUES
      The recipient owns the values but not the container
    • FULL

      public static final TransferOwnership FULL
      The recipient owns the entire value
  • Method Details

    • values

      public static TransferOwnership[] 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 TransferOwnership 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