Enum Class AccessPattern
java.lang.Object
java.lang.Enum<AccessPattern>
edu.internet2.middleware.grouperClientExt.com.fasterxml.jackson.databind.util.AccessPattern
- All Implemented Interfaces:
Serializable
,Comparable<AccessPattern>
,java.lang.constant.Constable
Enumeration used to indicate required access pattern for providers:
this can sometimes be used to optimize out dynamic calls.
The main difference is between constant values (which can be resolved once)
and dynamic ones (which must be resolved anew every time).
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionValue that indicates that provider never returns anything other than Java `null`.Value that indicates that provider will always return a constant value, regardless of when it is called; and also that it never uses `context` argument (which may then be passed as `null`)Value that indicates that provider may return different values at different times (often a freshly constructed empty container), and thus must be called every time "null replacement" value is needed. -
Method Summary
Modifier and TypeMethodDescriptionstatic AccessPattern
Returns the enum constant of this class with the specified name.static AccessPattern[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
ALWAYS_NULL
Value that indicates that provider never returns anything other than Java `null`. -
CONSTANT
Value that indicates that provider will always return a constant value, regardless of when it is called; and also that it never uses `context` argument (which may then be passed as `null`) -
DYNAMIC
Value that indicates that provider may return different values at different times (often a freshly constructed empty container), and thus must be called every time "null replacement" value is needed.
-
-
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
-