Class StringValue

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

@ProtobufClass public final class StringValue extends Object
Protocol wrapper for a single String value.

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

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

    • value

      @Protobuf(fieldType=STRING, order=1) public String value
      the wrapped string value
  • Constructor Details

    • StringValue

      public StringValue()
  • Method Details

    • of

      public static StringValue of(String value)
      Create a StringValue wrapping the given string.
      Parameters:
      value - the string value to wrap
      Returns:
      a new StringValue instance
    • toString

      public String toString()
      Overrides:
      toString in class Object