Package com.io7m.montarre.api
Record Class MArchitectureName
java.lang.Object
java.lang.Record
com.io7m.montarre.api.MArchitectureName
- Record Components:
name- The name
- All Implemented Interfaces:
Comparable<MArchitectureName>
public record MArchitectureName(String name)
extends Record
implements Comparable<MArchitectureName>
A hardware architecture name.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic MArchitectureNameaarch_64()static MArchitectureNamearm_32()intfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.static MArchitectureNameInfer an architecture from the given string.static MArchitectureNamestatic MArchitectureNamemips_32()static MArchitectureNamemips_64()static MArchitectureNamestatic MArchitectureNamename()Returns the value of thenamerecord component.static MArchitectureNameppc_32()static MArchitectureNameppc_64()static MArchitectureNameppcle_32()static MArchitectureNameppcle_64()static MArchitectureNameriscv_32()static MArchitectureNameriscv_64()static MArchitectureNames390_64()static MArchitectureNamesparc_32()static MArchitectureNamesparc_64()toString()Returns a string representation of this record class.static MArchitectureNameunknown()static Patternvalid()static MArchitectureNamex86_32()static MArchitectureNamex86_64()
-
Constructor Details
-
MArchitectureName
A hardware architecture name.- Parameters:
name- The name
-
-
Method Details
-
valid
- Returns:
- The pattern that defines validity
-
unknown
- Returns:
- The unknown architecture
-
infer
Infer an architecture from the given string.- Parameters:
name- The name- Returns:
- The architecture or
unknown()
-
loongarch_64
- Returns:
- A standard architecture name
-
riscv_64
- Returns:
- A standard architecture name
-
riscv_32
- Returns:
- A standard architecture name
-
ppcle_64
- Returns:
- A standard architecture name
-
ppc_64
- Returns:
- A standard architecture name
-
ppcle_32
- Returns:
- A standard architecture name
-
ppc_32
- Returns:
- A standard architecture name
-
mipsle_64
- Returns:
- A standard architecture name
-
mipsle_32
- Returns:
- A standard architecture name
-
mips_64
- Returns:
- A standard architecture name
-
mips_32
- Returns:
- A standard architecture name
-
aarch_64
- Returns:
- A standard architecture name
-
arm_32
- Returns:
- A standard architecture name
-
sparc_64
- Returns:
- A standard architecture name
-
sparc_32
- Returns:
- A standard architecture name
-
x86_64
- Returns:
- A standard architecture name
-
x86_32
- Returns:
- A standard architecture name
-
s390_64
- Returns:
- A standard architecture name
-
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. -
compareTo
- Specified by:
compareToin interfaceComparable<MArchitectureName>
-
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. All components in this record class are compared withObjects::equals(Object,Object). -
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-