protected Object decodeValue()

in baremaps-core/src/main/java/org/apache/baremaps/vectortile/VectorTileDecoder.java [124:142]


  protected Object decodeValue(Value value) {
    if (value.hasStringValue()) {
      return value.getStringValue();
    } else if (value.hasFloatValue()) {
      return value.getFloatValue();
    } else if (value.hasDoubleValue()) {
      return value.getDoubleValue();
    } else if (value.hasIntValue()) {
      return value.getIntValue();
    } else if (value.hasSintValue()) {
      return value.getSintValue();
    } else if (value.hasUintValue()) {
      return value.getUintValue();
    } else if (value.hasBoolValue()) {
      return value.getBoolValue();
    } else {
      throw new IllegalStateException("Value is not set.");
    }
  }