Class IntValue

java.lang.Object
com.iohao.net.framework.protocol.wrapper.IntValue

@ProtobufClass public final class IntValue extends Object
Protocol wrapper for a single int value.

Wraps a primitive int for protobuf serialization, allowing it to be used as a parameter or return type in @ActionMethod handlers.

Author:
渔民小镇
date:
2023-02-10
  • Field Details

    • value

      @Protobuf(fieldType=SINT32, order=1) public int value
      the wrapped int value
  • Constructor Details

    • IntValue

      public IntValue()
  • Method Details

    • of

      public static IntValue of(int value)
      Create an IntValue wrapping the given int.
      Parameters:
      value - the int value to wrap
      Returns:
      a new IntValue instance
    • toString

      public String toString()
      Overrides:
      toString in class Object