Record Class CollectionPredicate.Count.Entry<T, P extends Predicate<T>>
java.lang.Object
java.lang.Record
net.minestom.server.instance.block.predicate.CollectionPredicate.Count.Entry<T,P>
- All Implemented Interfaces:
Predicate<Collection<T>>
- Enclosing class:
CollectionPredicate.Count<T, P extends Predicate<T>>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic <T, P extends Predicate<T>>
Codec<CollectionPredicate.Count.Entry<T, P>> count()Returns the value of thecountrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of thepredicaterecord component.booleantest(Collection<T> collection) final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Entry
-
-
Method Details
-
codec
public static <T, P extends Predicate<T>> Codec<CollectionPredicate.Count.Entry<T,P>> codec(Codec<P> itemCodec) -
test
-
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). -
predicate
Returns the value of thepredicaterecord component.- Returns:
- the value of the
predicaterecord component
-
count
Returns the value of thecountrecord component.- Returns:
- the value of the
countrecord component
-