public static <SerializationT extends Serialization> ParametersParser<SerializationT> create(
      ParametersParsingFunction<SerializationT> function,
      Bytes objectIdentifier,
      Class<SerializationT> serializationClass) {
    return new ParametersParser<SerializationT>(objectIdentifier, serializationClass) {
      @Override
      public Parameters parseParameters(SerializationT serialization)
          throws GeneralSecurityException {
        return function.parseParameters(serialization);
      }
    };
  }
Creates a ParametersParser object.

<p>In order to create a ParametersParser object, one typically writes a function

<pre>{@code
class MyClass {
  private static MyParameters parse(MySerialization parametersSerialization)
            throws GeneralSecurityException {
    ...
  }
}
}</pre>

This function can then be used to create a {@code ParametersParser}:

<pre>{@code
ParametersParser<MySerialization> parser =
      ParametersParser.create(MyClass::parse, objectIdentifier, MySerialization.class);
}</pre>

@param function The function used to parse a {@link Parameters} object.
@param objectIdentifier The identifier to be returned by {@link #getObjectIdentifier}
@param serializationClass The class object corresponding to {@code SerializationT}
java_src/src/main/java/com/google/crypto/tink/internal/ParametersParser.java