Package cpufeatures.arm
Record Class ArmInfo
java.lang.Object
java.lang.Record
cpufeatures.arm.ArmInfo
- Record Components:
features- Which features this processor supports.implementer- Implementer.architecture- Architecture.variant- Variant.part- Part.revision- Revision.
public record ArmInfo(ArmFeatures features, int implementer, int architecture, int variant, int part, int revision)
extends Record
Info on a processor running the ARM architecture.
-
Constructor Summary
ConstructorsConstructorDescriptionArmInfo(ArmFeatures features, int implementer, int architecture, int variant, int part, int revision) Creates an instance of aArmInforecord class. -
Method Summary
Modifier and TypeMethodDescriptionintReturns the value of thearchitecturerecord component.final booleanIndicates whether some other object is "equal to" this one.features()Returns the value of thefeaturesrecord component.Gets a set of all features that this info holds.static ArmInfoget()Gets info on the ARM processor running on this JVM.final inthashCode()Returns a hash code value for this object.intReturns the value of theimplementerrecord component.intpart()Returns the value of thepartrecord component.intrevision()Returns the value of therevisionrecord component.final StringtoString()Returns a string representation of this record class.intvariant()Returns the value of thevariantrecord component.
-
Constructor Details
-
ArmInfo
public ArmInfo(ArmFeatures features, int implementer, int architecture, int variant, int part, int revision) Creates an instance of aArmInforecord class.- Parameters:
features- the value for thefeaturesrecord componentimplementer- the value for theimplementerrecord componentarchitecture- the value for thearchitecturerecord componentvariant- the value for thevariantrecord componentpart- the value for thepartrecord componentrevision- the value for therevisionrecord component
-
-
Method Details
-
get
Gets info on the ARM processor running on this JVM.If the host is not on an ARM processor, this operation will fail.
- Returns:
- Processor info.
-
featureSet
Gets a set of all features that this info holds. If you are testing for a specific feature, prefer usingfeatures()instead.- Returns:
- Set of features.
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
features
Returns the value of thefeaturesrecord component.- Returns:
- the value of the
featuresrecord component
-
implementer
public int implementer()Returns the value of theimplementerrecord component.- Returns:
- the value of the
implementerrecord component
-
architecture
public int architecture()Returns the value of thearchitecturerecord component.- Returns:
- the value of the
architecturerecord component
-
variant
public int variant()Returns the value of thevariantrecord component.- Returns:
- the value of the
variantrecord component
-
part
public int part()Returns the value of thepartrecord component.- Returns:
- the value of the
partrecord component
-
revision
public int revision()Returns the value of therevisionrecord component.- Returns:
- the value of the
revisionrecord component
-