Record Class LoadRequirement.PlatformRequirement
java.lang.Object
java.lang.Record
io.github.miniplaceholders.api.provider.LoadRequirement.PlatformRequirement
- Record Components:
platforms
- the platforms supported
- All Implemented Interfaces:
LoadRequirement
,net.kyori.examination.Examinable
- Enclosing interface:
LoadRequirement
@Internal
@NullMarked
public static record LoadRequirement.PlatformRequirement(Platform[] platforms)
extends Record
implements LoadRequirement, net.kyori.examination.Examinable
PlatformLoadRequirement
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.github.miniplaceholders.api.provider.LoadRequirement
LoadRequirement.AvailableComplementRequirement, LoadRequirement.MultiLoadRequirement, LoadRequirement.NoneLoadRequirement, LoadRequirement.PlatformRequirement
-
Constructor Summary
ConstructorsConstructorDescriptionPlatformRequirement
(Platform... platforms) Creates an instance of aPlatformRequirement
record class. -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.Platform[]
Returns the value of theplatforms
record component.toString()
Returns a string representation of this record class.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface net.kyori.examination.Examinable
examinableName, examinableProperties, examine
-
Constructor Details
-
PlatformRequirement
Creates an instance of aPlatformRequirement
record class.- Parameters:
platforms
- the value for theplatforms
record component
-
-
Method Details
-
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. All components in this record class are compared withObjects::equals(Object,Object)
. -
platforms
Returns the value of theplatforms
record component.- Returns:
- the value of the
platforms
record component
-