Class CEnumValue.Builder

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      CEnumValue build()
      Build the instance value.
      CEnumValue.Builder setById​(int id)
      Set the enum entity from integer value as it was defined in the thrift IDL.
      CEnumValue.Builder setByName​(java.lang.String name)
      Set the enum entity from name as it was written in the thrift IDL.
      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
    • Method Detail

      • build

        public CEnumValue build()
        Description copied from interface: PBuilder
        Build the instance value.
        Returns:
        The instance value.
      • valid

        public boolean valid()
        Description copied from class: PEnumBuilder
        Check if the enum builder has been given a valid value.
        Specified by:
        valid in class PEnumBuilder<CEnumValue>
        Returns:
        True if valid.
      • setById

        @Nonnull
        public CEnumValue.Builder setById​(int id)
        Description copied from class: PEnumBuilder
        Set the enum entity from integer value as it was defined in the thrift IDL.
        Specified by:
        setById in class PEnumBuilder<CEnumValue>
        Parameters:
        id - The value to match.
        Returns:
        The builder.
      • setByName

        @Nonnull
        public CEnumValue.Builder setByName​(java.lang.String name)
        Description copied from class: PEnumBuilder
        Set the enum entity from name as it was written in the thrift IDL.
        Specified by:
        setByName in class PEnumBuilder<CEnumValue>
        Parameters:
        name - The name to match.
        Returns:
        The builder.