Record Class SyncProxyLoginConfiguration

java.lang.Object
java.lang.Record
eu.cloudnetservice.modules.syncproxy.config.SyncProxyLoginConfiguration

public record SyncProxyLoginConfiguration(@NonNull String targetGroup, boolean maintenance, int maxPlayers, @Unmodifiable @NonNull Set<String> whitelist, @Unmodifiable @NonNull List<SyncProxyMotd> motds, @Unmodifiable @NonNull List<SyncProxyMotd> maintenanceMotds) extends Record
  • Field Details

  • Constructor Details

    • SyncProxyLoginConfiguration

      public SyncProxyLoginConfiguration(@NonNull @NonNull String targetGroup, boolean maintenance, int maxPlayers, @NonNull @Unmodifiable @NonNull Set<String> whitelist, @NonNull @Unmodifiable @NonNull List<SyncProxyMotd> motds, @NonNull @Unmodifiable @NonNull List<SyncProxyMotd> maintenanceMotds)
      Creates an instance of a SyncProxyLoginConfiguration record class.
      Parameters:
      targetGroup - the value for the targetGroup record component
      maintenance - the value for the maintenance record component
      maxPlayers - the value for the maxPlayers record component
      whitelist - the value for the whitelist record component
      motds - the value for the motds record component
      maintenanceMotds - the value for the maintenanceMotds record component
  • Method Details

    • builder

    • builder

    • createDefault

      @NonNull public static @NonNull SyncProxyLoginConfiguration createDefault(@NonNull @NonNull String targetGroup)
    • equals

      public boolean equals(@Nullable @Nullable 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 the compare method from their corresponding wrapper classes.
      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.
    • hashCode

      public 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
    • 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
    • targetGroup

      @NonNull public @NonNull String targetGroup()
      Returns the value of the targetGroup record component.
      Returns:
      the value of the targetGroup record component
    • maintenance

      public boolean maintenance()
      Returns the value of the maintenance record component.
      Returns:
      the value of the maintenance record component
    • maxPlayers

      public int maxPlayers()
      Returns the value of the maxPlayers record component.
      Returns:
      the value of the maxPlayers record component
    • whitelist

      @NonNull public @Unmodifiable @NonNull Set<String> whitelist()
      Returns the value of the whitelist record component.
      Returns:
      the value of the whitelist record component
    • motds

      Returns the value of the motds record component.
      Returns:
      the value of the motds record component
    • maintenanceMotds

      @NonNull public @Unmodifiable @NonNull List<SyncProxyMotd> maintenanceMotds()
      Returns the value of the maintenanceMotds record component.
      Returns:
      the value of the maintenanceMotds record component