Record Class VersionMeta.Rule
java.lang.Object
java.lang.Record
com.cleanroommc.gradle.api.schema.VersionMeta.Rule
- Enclosing class:
VersionMeta
-
Constructor Summary
ConstructorsConstructorDescriptionRule(String action, VersionMeta.OS os) Creates an instance of aRulerecord class. -
Method Summary
Modifier and TypeMethodDescriptionaction()Returns the value of theactionrecord component.booleanappliesToOS(Platform platform) final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanos()Returns the value of theosrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Rule
Creates an instance of aRulerecord class.- Parameters:
action- the value for theactionrecord componentos- the value for theosrecord component
-
-
Method Details
-
appliesToOS
-
isAllowed
public boolean isAllowed() -
toString
-
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). -
action
Returns the value of theactionrecord component.- Returns:
- the value of the
actionrecord component
-
os
Returns the value of theosrecord component.- Returns:
- the value of the
osrecord component
-