Enum Class TransferMethod

java.lang.Object
java.lang.Enum<TransferMethod>
org.spongepowered.api.service.permission.TransferMethod
All Implemented Interfaces:
Serializable, Comparable<TransferMethod>, Constable

public enum TransferMethod extends Enum<TransferMethod>
Specifies how data should be transferred into a subject.
  • Enum Constant Details

    • OVERWRITE

      public static final TransferMethod OVERWRITE
      Any existing values in the container will be removed.
    • MERGE

      public static final TransferMethod MERGE
      Any existing values that are not specifically written by a value in the container being transferred will be preserved.
  • Method Details

    • values

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