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
    Constructor
    Description
    EventValueInfo(Class<E> event, Class<T> c, Converter<E,T> converter, @Nullable String excludeErrorMessage, @Nullable Class<? extends E>[] excludes, int time)
    Creates an instance of a EventValueInfo record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    c()
    Returns the value of the c record component.
    Returns the value of the converter record component.
    final boolean
    Indicates whether some other object is "equal to" this one.
    Returns the value of the event record component.
    @Nullable String
    Returns the value of the excludeErrorMessage record component.
    @Nullable Class<? extends E>[]
    Returns the value of the excludes record component.
    final int
    Returns a hash code value for this object.
    int
    Returns the value of the time record component.
    final String
    Returns a string representation of this record class.

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • 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 a EventValueInfo record class.
      Parameters:
      event - the value for the event record component
      c - the value for the c record component
      converter - the value for the converter record component
      excludeErrorMessage - the value for the excludeErrorMessage record component
      excludes - the value for the excludes record component
      time - the value for the time record component
  • Method Details

    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object); primitive components are compared with '=='.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • event

      public Class<E> event()
      Returns the value of the event record component.
      Returns:
      the value of the event record component
    • c

      public Class<T> c()
      Returns the value of the c record component.
      Returns:
      the value of the c record component
    • converter

      public Converter<E,T> converter()
      Returns the value of the converter record component.
      Returns:
      the value of the converter record component
    • excludeErrorMessage

      @Nullable public @Nullable String excludeErrorMessage()
      Returns the value of the excludeErrorMessage record component.
      Returns:
      the value of the excludeErrorMessage record component
    • excludes

      @Nullable public @Nullable Class<? extends E>[] excludes()
      Returns the value of the excludes record component.
      Returns:
      the value of the excludes record component
    • time

      public int time()
      Returns the value of the time record component.
      Returns:
      the value of the time record component