public enum CacheType extends Enum<CacheType>
Enum Constant and Description |
---|
DATA
Data cache.
|
INSTRUCTION
Instruction cache.
|
UNIFIED
Unified instruction/data cache.
|
UNKNOWN
Unknown cache type.
|
Modifier and Type | Method and Description |
---|---|
boolean |
in(CacheType... values)
Determine whether this instance is equal to one of the given instances.
|
boolean |
in(CacheType v1)
Determine whether this instance is equal to one of the given instances.
|
boolean |
in(CacheType v1,
CacheType v2)
Determine whether this instance is equal to one of the given instances.
|
boolean |
in(CacheType v1,
CacheType v2,
CacheType v3)
Determine whether this instance is equal to one of the given instances.
|
boolean |
isData()
Determine if this cache line type holds data.
|
static boolean |
isFull(EnumSet<CacheType> set)
Determine whether the given set is fully populated (or "full"), meaning it contains all possible values.
|
boolean |
isInstruction()
Determine if this cache line type holds instructions.
|
static CacheType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static CacheType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final CacheType UNKNOWN
public static final CacheType DATA
public static final CacheType INSTRUCTION
public static final CacheType UNIFIED
public static CacheType[] values()
for (CacheType c : CacheType.values()) System.out.println(c);
public static CacheType valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant
with the specified nameNullPointerException
- if the argument is nullpublic boolean isInstruction()
true
if the cache line holds instructions, false
if it does not or it cannot be determinedpublic boolean isData()
true
if the cache line holds data, false
if it does not or it cannot be determinedpublic static boolean isFull(EnumSet<CacheType> set)
set
- the settrue
if the set is full, false
otherwisepublic boolean in(CacheType v1)
v1
- the first instancetrue
if one of the instances matches this one, false
otherwisepublic boolean in(CacheType v1, CacheType v2)
v1
- the first instancev2
- the second instancetrue
if one of the instances matches this one, false
otherwisepublic boolean in(CacheType v1, CacheType v2, CacheType v3)
v1
- the first instancev2
- the second instancev3
- the third instancetrue
if one of the instances matches this one, false
otherwisepublic boolean in(CacheType... values)
values
- the possible valuestrue
if one of the instances matches this one, false
otherwiseCopyright © 2015 JBoss, a division of Red Hat, Inc.