public NumericPayloadTokenFilter(TokenStream input, float payload, String typeMatch) {super(input);if (typeMatch == null) {throw new IllegalArgumentException("typeMatch must not be null");}thePayload = new BytesRef(PayloadHelper.encodeFloat(payload));this.typeMatch = typeMatch;}
public NumericPayloadTokenFilter(TokenStream input, float payload, string typeMatch): base(input){if (typeMatch == null){throw new ArgumentException("typeMatch cannot be null");}thePayload = new BytesRef(PayloadHelper.EncodeSingle(payload));this.typeMatch = typeMatch;this.payloadAtt = AddAttribute<IPayloadAttribute>();this.typeAtt = AddAttribute<ITypeAttribute>();}