Enum Class Assigner.EqualTypesOnly
java.lang.Object
java.lang.Enum<Assigner.EqualTypesOnly>
net.bytebuddy.implementation.bytecode.assign.Assigner.EqualTypesOnly
- All Implemented Interfaces:
Serializable
,Comparable<Assigner.EqualTypesOnly>
,Constable
,Assigner
- Enclosing interface:
- Assigner
public static enum Assigner.EqualTypesOnly
extends Enum<Assigner.EqualTypesOnly>
implements Assigner
An assigner that only allows to assign types if they are equal to another.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
Nested classes/interfaces inherited from interface net.bytebuddy.implementation.bytecode.assign.Assigner
Assigner.EqualTypesOnly, Assigner.Refusing, Assigner.Typing
-
Enum Constant Summary
Enum Constants -
Field Summary
Fields inherited from interface net.bytebuddy.implementation.bytecode.assign.Assigner
DEFAULT, GENERICS_AWARE
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Assigner.EqualTypesOnly
Returns the enum constant of this class with the specified name.static Assigner.EqualTypesOnly[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
GENERIC
An type assigner that only considers equal generic types to be assignable. -
ERASURE
A type assigner that considers two generic types to be equal if their erasure is equal.
-
-
Constructor Details
-
EqualTypesOnly
private EqualTypesOnly()
-
-
Method Details
-
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
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 nameNullPointerException
- if the argument is null
-