Record Class BonePredicate.Packed
java.lang.Object
java.lang.Record
kr.toxicity.model.api.util.function.BonePredicate.Packed
- Record Components:
applyAtChildren- apply at childrenpredicate- predicate
- All Implemented Interfaces:
Predicate<RenderedBone>, BonePredicate
- Enclosing interface:
BonePredicate
public static record BonePredicate.Packed(@NotNull BonePredicate.State applyAtChildren, @NotNull Predicate<RenderedBone> predicate)
extends Record
implements BonePredicate
Packed value
-
Nested Class Summary
Nested classes/interfaces inherited from interface BonePredicate
BonePredicate.Builder, BonePredicate.Packed, BonePredicate.State -
Field Summary
Fields inherited from interface BonePredicate
FALSE, TRUE -
Constructor Summary
ConstructorsConstructorDescriptionPacked(@NotNull BonePredicate.State applyAtChildren, @NotNull Predicate<RenderedBone> predicate) Creates an instance of aPackedrecord class. -
Method Summary
Modifier and TypeMethodDescription@NotNull BonePredicateand(@NotNull Predicate<? super RenderedBone> other) @NotNull BonePredicate.StateReturns the value of theapplyAtChildrenrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.@NotNull BonePredicatenegate()@NotNull BonePredicateor(@NotNull Predicate<? super RenderedBone> other) @NotNull Predicate<RenderedBone> Returns the value of thepredicaterecord component.booleantest(@NotNull RenderedBone bone) final StringtoString()Returns a string representation of this record class.Methods inherited from interface BonePredicate
children
-
Constructor Details
-
Packed
public Packed(@NotNull @NotNull BonePredicate.State applyAtChildren, @NotNull @NotNull Predicate<RenderedBone> predicate) Creates an instance of aPackedrecord class.- Parameters:
applyAtChildren- the value for theapplyAtChildrenrecord componentpredicate- the value for thepredicaterecord component
-
-
Method Details
-
test
- Specified by:
testin interfaceBonePredicate- Specified by:
testin interfacePredicate<RenderedBone>
-
and
- Specified by:
andin interfaceBonePredicate- Specified by:
andin interfacePredicate<RenderedBone>
-
or
- Specified by:
orin interfaceBonePredicate- Specified by:
orin interfacePredicate<RenderedBone>
-
negate
- Specified by:
negatein interfaceBonePredicate- Specified by:
negatein interfacePredicate<RenderedBone>
-
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). -
applyAtChildren
Returns the value of theapplyAtChildrenrecord component.- Specified by:
applyAtChildrenin interfaceBonePredicate- Returns:
- the value of the
applyAtChildrenrecord component
-
predicate
-