Package studio.mevera.lotus.api.slot
Record Class SlotMask.Excluding
java.lang.Object
java.lang.Record
studio.mevera.lotus.api.slot.SlotMask.Excluding
- All Implemented Interfaces:
SlotMask
- Enclosing interface:
SlotMask
-
Nested Class Summary
Nested classes/interfaces inherited from interface studio.mevera.lotus.api.slot.SlotMask
SlotMask.Custom, SlotMask.Excluding, SlotMask.Full, SlotMask.Range -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription@NotNull SlotMaskbase()Returns the value of thebaserecord component.@NotNull Capacitycapacity()booleanfinal booleanIndicates whether some other object is "equal to" this one.excluded()Returns the value of theexcludedrecord component.@NotNull SlotMaskfinal inthashCode()Returns a hash code value for this object.intsize()stream()final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Excluding
Creates an instance of aExcludingrecord class.- Parameters:
base- the value for thebaserecord componentexcluded- the value for theexcludedrecord component
-
-
Method Details
-
capacity
-
contains
-
size
public int size() -
stream
-
excluding
-
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). -
base
Returns the value of thebaserecord component.- Returns:
- the value of the
baserecord component
-
excluded
Returns the value of theexcludedrecord component.- Returns:
- the value of the
excludedrecord component
-