Class PEnumBuilder<T>

    • Constructor Summary

      Constructors 
      Constructor Description
      PEnumBuilder()  
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      abstract T build()  
      abstract PEnumBuilder<T> setById​(int value)
      Set the enum entity from integer value as it was defined in the thrift IDL.
      abstract PEnumBuilder<T> setByName​(java.lang.String name)
      Set the enum entity from name as it was written in the thrift IDL.
      abstract boolean valid()
      Check if the enum builder has been given a valid value.
      • Methods inherited from class java.lang.Object

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

      • PEnumBuilder

        public PEnumBuilder()
    • Method Detail

      • valid

        public abstract boolean valid()
        Check if the enum builder has been given a valid value.
        Returns:
        True if valid.
      • setById

        @Nonnull
        public abstract PEnumBuilder<T> setById​(int value)
        Set the enum entity from integer value as it was defined in the thrift IDL.
        Parameters:
        value - The value to match.
        Returns:
        The builder.
      • setByName

        @Nonnull
        public abstract PEnumBuilder<T> setByName​(java.lang.String name)
        Set the enum entity from name as it was written in the thrift IDL.
        Parameters:
        name - The name to match.
        Returns:
        The builder.
      • build

        @Nullable
        public abstract T build()