Class IntValueList

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

@ProtobufClass public final class IntValueList extends Object
Protocol wrapper for a list of int values.

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

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

    • values

      @Protobuf(fieldType=SINT32, order=1) public List<Integer> values
      the wrapped list of int values
  • Constructor Details

    • IntValueList

      public IntValueList()
  • Method Details

    • of

      public static IntValueList of(List<Integer> values)
      Create an IntValueList wrapping the given list of integers.
      Parameters:
      values - the list of integer values to wrap
      Returns:
      a new IntValueList instance
    • toString

      public String toString()
      Overrides:
      toString in class Object