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
-
-
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
-
compareTo
- Specified by:
compareToin interfaceComparable<MArchitectureName>
-
hashCode
-
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
-