Record Class UserTokenApplication

java.lang.Object
java.lang.Record
live.crowdcontrol.cc4j.websocket.UserTokenApplication

public record UserTokenApplication(@NotNull String appID, @NotNull List<@NotNull String> scopes, @Nullable List<@NotNull String> packs) extends Record
  • Constructor Summary

    Constructors
    Constructor
    Description
    UserTokenApplication(@NotNull String appID, @NotNull List<@NotNull String> scopes, @Nullable List<@NotNull String> packs)
    Creates an instance of a UserTokenApplication record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    @NotNull String
    Returns the value of the appID record component.
    final boolean
    Indicates whether some other object is "equal to" this one.
    final int
    Returns a hash code value for this object.
    @Nullable List<@NotNull String>
    Returns the value of the packs record component.
    @NotNull List<@NotNull String>
    Returns the value of the scopes 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

    • UserTokenApplication

      public UserTokenApplication(@NotNull @NotNull String appID, @NotNull @NotNull List<@NotNull String> scopes, @Nullable @Nullable List<@NotNull String> packs)
      Creates an instance of a UserTokenApplication record class.
      Parameters:
      appID - the value for the appID record component
      scopes - the value for the scopes record component
      packs - the value for the packs 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. All components in this record class are compared with Objects::equals(Object,Object).
      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.
    • appID

      @NotNull public @NotNull String appID()
      Returns the value of the appID record component.
      Returns:
      the value of the appID record component
    • scopes

      @NotNull public @NotNull List<@NotNull String> scopes()
      Returns the value of the scopes record component.
      Returns:
      the value of the scopes record component
    • packs

      @Nullable public @Nullable List<@NotNull String> packs()
      Returns the value of the packs record component.
      Returns:
      the value of the packs record component