Top Description Fields Constructors Methods
org.jboss.logmanager.formatters

pack-priv final Class NumericFlags

extends FlagSet<NumericFlag>
Class Inheritance
Imports
java.util.concurrent.atomic.AtomicReferenceArray

A set of numeric flags.

Field Summary

Modifier and TypeField and Description
private static final AtomicReferenceArray<NumericFlags>
public static final NumericFlags
pack-priv static final NumericFlag[]
Inherited from org.jboss.logmanager.formatters.FlagSet:
value

Constructor Summary

AccessConstructor and Description
private
NumericFlags(final int value)

Method Summary

Modifier and TypeMethod and Description
public boolean
private static NumericFlags
getOrCreateSet(final int bits)

public static NumericFlags
of(NumericFlag
the single element
flag
)

Hides java.util.Set.of.

Returns an unmodifiable set containing one element.

public static NumericFlags
of(NumericFlag
the first element
flag1
,
NumericFlag
the second element
flag2
)

Hides java.util.Set.of.

Returns an unmodifiable set containing two elements.

public static NumericFlags
of(NumericFlag
the first element
flag1
,
NumericFlag
the second element
flag2
,
NumericFlag
the third element
flag3
)

Hides java.util.Set.of.

Returns an unmodifiable set containing three elements.

pack-priv NumericFlag[]
public NumericFlags
with(final NumericFlag flag)

public NumericFlags
Inherited from org.jboss.logmanager.formatters.FlagSet:
containsequalsforbidforbidAllforbidAllButforEachhashCodeiteratorsizetoArray

Field Detail

ALL_SETSback to summary
private static final AtomicReferenceArray<NumericFlags> ALL_SETS
NONEback to summary
public static final NumericFlags NONE
valuesback to summary
pack-priv static final NumericFlag[] values

Constructor Detail

NumericFlagsback to summary
private NumericFlags(final int value)

Method Detail

containsback to summary
public boolean contains(final Enum<?> e)

Overrides org.jboss.logmanager.formatters.FlagSet.contains.

getOrCreateSetback to summary
private static NumericFlags getOrCreateSet(final int bits)
ofback to summary
public static NumericFlags of(NumericFlag flag)

Hides java.util.Set.of.

Doc from java.util.Set.of.

Returns an unmodifiable set containing one element. See Unmodifiable Sets for details.

Parameters
flag:NumericFlag

the single element

Returns:NumericFlags

a Set containing the specified element

ofback to summary
public static NumericFlags of(NumericFlag flag1, NumericFlag flag2)

Hides java.util.Set.of.

Doc from java.util.Set.of.

Returns an unmodifiable set containing two elements. See Unmodifiable Sets for details.

Parameters
flag1:NumericFlag

the first element

flag2:NumericFlag

the second element

Returns:NumericFlags

a Set containing the specified elements

ofback to summary
public static NumericFlags of(NumericFlag flag1, NumericFlag flag2, NumericFlag flag3)

Hides java.util.Set.of.

Doc from java.util.Set.of.

Returns an unmodifiable set containing three elements. See Unmodifiable Sets for details.

Parameters
flag1:NumericFlag

the first element

flag2:NumericFlag

the second element

flag3:NumericFlag

the third element

Returns:NumericFlags

a Set containing the specified elements

valuesback to summary
pack-priv NumericFlag[] values()

Implements abstract org.jboss.logmanager.formatters.FlagSet.values.

withback to summary
public NumericFlags with(final NumericFlag flag)
withoutback to summary
public NumericFlags without(final NumericFlag flag)

Implements abstract org.jboss.logmanager.formatters.FlagSet.without.