Package com.uc4.api

Class UC4Alias

java.lang.Object
com.uc4.api.UC4Alias

public class UC4Alias extends Object
This class stores a valid alias. The method toString() of this class can be used to get the alias as String
  • Field Details

    • EMPTY

      public static final UC4Alias EMPTY
      Represents an empty UC4Alias.
  • Constructor Details

    • UC4Alias

      public UC4Alias(String name)
      Creates a new alias.
      Parameters:
      name - Name of the Object
      Throws:
      InvalidUC4NameException - If the name has more than 200 characters.
  • Method Details

    • aliasOf

      public static UC4Alias aliasOf(String value)
      Creates an alias from a String value. If input value is not valid then an empty UC4Alias is returned.
      Parameters:
      value - input value
      Returns:
      a UC4Alias which is empty if input is not valid.
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object