Class SharedString

java.lang.Object
cl.netswitch.lib.server.SharedValue
cl.netswitch.lib.server.SharedString

public final class SharedString extends SharedValue
Contains a String value that is shared by all servers.
  • Method Details

    • get

      public String get()
      Returns the value of this SharedString.
      Returns:
      the value of this SharedString.
    • set

      public void set(String value)
      Changes the value of this SharedString.
      Parameters:
      value - the new value of this SharedString.
    • parse

      public void parse(String text)
      Changes the value of this SharedString.
      Specified by:
      parse in class SharedValue
      Parameters:
      text - the string representation of the new value.
      Throws:
      IllegalArgumentException - if text is invalid.
    • toString

      public String toString()
      Returns a string representation of this SharedString.
      Overrides:
      toString in class Object
      Returns:
      a string representation of this SharedString.