Class Alias


  • @ParametersAreNonnullByDefault
    public class Alias
    extends java.lang.Object
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static Alias NONE  
    • Constructor Summary

      Constructors 
      Constructor Description
      Alias​(java.lang.String text)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getOrElse​(java.util.function.Supplier<java.lang.String> defaultValue)  
      java.lang.String getText()
      As a rule, you don't need to use this method directly.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • NONE

        public static final Alias NONE
    • Constructor Detail

      • Alias

        public Alias​(java.lang.String text)
    • Method Detail

      • getOrElse

        @CheckReturnValue
        public java.lang.String getOrElse​(java.util.function.Supplier<java.lang.String> defaultValue)
      • getText

        @Nullable
        @CheckReturnValue
        public java.lang.String getText()
        As a rule, you don't need to use this method directly.
        Returns:
        text value of this alias (or empty text if alias is not defined)
        Since:
        5.20.0