Top Description Fields Constructors Methods
io.smallrye.common.cpu

public final Enum CacheType

extends Enum<CacheType>
Class Inheritance
Imports
java.util.EnumSet

The type of cache.

Field Summary

Modifier and TypeField and Description
public static final CacheType
DATA

Data cache.

private final boolean
private static final int
public static final CacheType
INSTRUCTION

Instruction cache.

private final boolean
public static final CacheType
UNIFIED

Unified instruction/data cache.

public static final CacheType
UNKNOWN

Unknown cache type.

Constructor Summary

AccessConstructor and Description
private
CacheType(final boolean instruction, final boolean data)

Method Summary

Modifier and TypeMethod and Description
public boolean

Returns:

true if one of the instances matches this one, false otherwise
in
(final CacheType
the first instance
v1
)

Determine whether this instance is equal to one of the given instances.

public boolean

Returns:

true if one of the instances matches this one, false otherwise
in
(final CacheType
the first instance
v1
,
final CacheType
the second instance
v2
)

Determine whether this instance is equal to one of the given instances.

public boolean

Returns:

true if one of the instances matches this one, false otherwise
in
(final CacheType
the first instance
v1
,
final CacheType
the second instance
v2
,
final CacheType
the third instance
v3
)

Determine whether this instance is equal to one of the given instances.

public boolean

Returns:

true if one of the instances matches this one, false otherwise
in
(final CacheType...
the possible values
values
)

Determine whether this instance is equal to one of the given instances.

public boolean

Returns:

true if the cache line holds data, false if it does not or it cannot be determined
isData
()

Determine if this cache line type holds data.

public static boolean

Returns:

true if the set is full, false otherwise
isFull
(final EnumSet<CacheType>
the set
set
)

Determine whether the given set is fully populated (or "full"), meaning it contains all possible values.

public boolean

Returns:

true if the cache line holds instructions, false if it does not or it cannot be determined
isInstruction
()

Determine if this cache line type holds instructions.

public static CacheType
public static CacheType[]
Inherited from java.lang.Enum:
clonecompareTodescribeConstableequalsfinalizegetDeclaringClasshashCodenameordinaltoStringvalueOf

Field Detail

DATAback to summary
public static final CacheType DATA

Data cache.

databack to summary
private final boolean data
fullSizeback to summary
private static final int fullSize
INSTRUCTIONback to summary
public static final CacheType INSTRUCTION

Instruction cache.

instructionback to summary
private final boolean instruction
UNIFIEDback to summary
public static final CacheType UNIFIED

Unified instruction/data cache.

UNKNOWNback to summary
public static final CacheType UNKNOWN

Unknown cache type.

Constructor Detail

CacheTypeback to summary
private CacheType(final boolean instruction, final boolean data)

Method Detail

inback to summary
public boolean in(final CacheType v1)

Determine whether this instance is equal to one of the given instances.

Parameters
v1:CacheType

the first instance

Returns:boolean

true if one of the instances matches this one, false otherwise

inback to summary
public boolean in(final CacheType v1, final CacheType v2)

Determine whether this instance is equal to one of the given instances.

Parameters
v1:CacheType

the first instance

v2:CacheType

the second instance

Returns:boolean

true if one of the instances matches this one, false otherwise

inback to summary
public boolean in(final CacheType v1, final CacheType v2, final CacheType v3)

Determine whether this instance is equal to one of the given instances.

Parameters
v1:CacheType

the first instance

v2:CacheType

the second instance

v3:CacheType

the third instance

Returns:boolean

true if one of the instances matches this one, false otherwise

inback to summary
public boolean in(final CacheType... values)

Determine whether this instance is equal to one of the given instances.

Parameters
values:CacheType[]

the possible values

Returns:boolean

true if one of the instances matches this one, false otherwise

isDataback to summary
public boolean isData()

Determine if this cache line type holds data.

Returns:boolean

true if the cache line holds data, false if it does not or it cannot be determined

isFullback to summary
public static boolean isFull(final EnumSet<CacheType> set)

Determine whether the given set is fully populated (or "full"), meaning it contains all possible values.

Parameters
set:EnumSet<CacheType>

the set

Returns:boolean

true if the set is full, false otherwise

isInstructionback to summary
public boolean isInstruction()

Determine if this cache line type holds instructions.

Returns:boolean

true if the cache line holds instructions, false if it does not or it cannot be determined

valueOfback to summary
public static CacheType valueOf(String name)
valuesback to summary
public static CacheType[] values()