Package ch.njol.skript.registrations
Record Class EventValues.EventValueInfo<E extends org.bukkit.event.Event,T>
java.lang.Object
java.lang.Record
ch.njol.skript.registrations.EventValues.EventValueInfo<E,T>
- Enclosing class:
EventValues
public static record EventValues.EventValueInfo<E extends org.bukkit.event.Event,T> (Class<E extends org.bukkit.event.Event> event, Class<T> c, Converter<E extends org.bukkit.event.Event,T> converter, @Nullable String excludeErrorMessage, @Nullable Class<? extends E extends org.bukkit.event.Event>[] excludes, int time)
extends Record
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionc()
Returns the value of thec
record component.Returns the value of theconverter
record component.final boolean
Indicates whether some other object is "equal to" this one.event()
Returns the value of theevent
record component.@Nullable String
Returns the value of theexcludeErrorMessage
record component.excludes()
Returns the value of theexcludes
record component.final int
hashCode()
Returns a hash code value for this object.int
time()
Returns the value of thetime
record component.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
EventValueInfo
public EventValueInfo(Class<E> event, Class<T> c, Converter<E, T> converter, @Nullable @Nullable String excludeErrorMessage, @Nullable @Nullable Class<? extends E>[] excludes, int time) Creates an instance of aEventValueInfo
record class.- Parameters:
event
- the value for theevent
record componentc
- the value for thec
record componentconverter
- the value for theconverter
record componentexcludeErrorMessage
- the value for theexcludeErrorMessage
record componentexcludes
- the value for theexcludes
record componenttime
- the value for thetime
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. Reference components are compared withObjects::equals(Object,Object)
; primitive components are compared with '=='. -
event
Returns the value of theevent
record component.- Returns:
- the value of the
event
record component
-
c
Returns the value of thec
record component.- Returns:
- the value of the
c
record component
-
converter
Returns the value of theconverter
record component.- Returns:
- the value of the
converter
record component
-
excludeErrorMessage
Returns the value of theexcludeErrorMessage
record component.- Returns:
- the value of the
excludeErrorMessage
record component
-
excludes
Returns the value of theexcludes
record component.- Returns:
- the value of the
excludes
record component
-
time
public int time()Returns the value of thetime
record component.- Returns:
- the value of the
time
record component
-