Package io.opentelemetry.sdk.internal
Enum AndroidFriendlyRandomHolder
java.lang.Object
java.lang.Enum<AndroidFriendlyRandomHolder>
io.opentelemetry.sdk.internal.AndroidFriendlyRandomHolder
- All Implemented Interfaces:
Serializable
,Comparable<AndroidFriendlyRandomHolder>
,java.lang.constant.Constable
,Supplier<Random>
enum AndroidFriendlyRandomHolder
extends Enum<AndroidFriendlyRandomHolder>
implements Supplier<Random>
RandomSupplier
instance that doesn't use ThreadLocalRandom
,
which is broken on most versions of Android (it uses the same seed everytime it starts up).-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum Constants -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionget()
static AndroidFriendlyRandomHolder
Returns the enum constant of this type with the specified name.static AndroidFriendlyRandomHolder[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
INSTANCE
-
-
Field Details
-
random
-
-
Constructor Details
-
AndroidFriendlyRandomHolder
private AndroidFriendlyRandomHolder()
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified nameNullPointerException
- if the argument is null
-
get
-