@Test public void testGetIpProtoValue() { Long expected = IpProtoClassifierDefinition.UDP_VALUE; assertEquals(expected, IpProtoClassifier.getIpProtoValue(prepareParams(expected))); }
public static Long getIpProtoValue(Map<String, ParameterValue> params) { if (params == null) { return null; } if (params.get(IpProtoClassifierDefinition.PROTO_PARAM) == null) { return null; } Long proto = params.get(IpProtoClassifierDefinition.PROTO_PARAM).getIntValue(); if (proto != null) { return proto; } return null; }
IpProtoClassifier extends Classifier { public static Long getIpProtoValue(Map<String, ParameterValue> params) { if (params == null) { return null; } if (params.get(IpProtoClassifierDefinition.PROTO_PARAM) == null) { return null; } Long proto = params.get(IpProtoClassifierDefinition.PROTO_PARAM).getIntValue(); if (proto != null) { return proto; } return null; } }
IpProtoClassifier extends Classifier { public static Long getIpProtoValue(Map<String, ParameterValue> params) { if (params == null) { return null; } if (params.get(IpProtoClassifierDefinition.PROTO_PARAM) == null) { return null; } Long proto = params.get(IpProtoClassifierDefinition.PROTO_PARAM).getIntValue(); if (proto != null) { return proto; } return null; } protected  IpProtoClassifier(Classifier parent); }
IpProtoClassifier extends Classifier { public static Long getIpProtoValue(Map<String, ParameterValue> params) { if (params == null) { return null; } if (params.get(IpProtoClassifierDefinition.PROTO_PARAM) == null) { return null; } Long proto = params.get(IpProtoClassifierDefinition.PROTO_PARAM).getIntValue(); if (proto != null) { return proto; } return null; } protected  IpProtoClassifier(Classifier parent); @Override ClassifierDefinitionId getId(); @Override ClassifierDefinition getClassifierDefinition(); @Override List<SupportedParameterValues> getSupportedParameterValues(); static Long getIpProtoValue(Map<String, ParameterValue> params); }
IpProtoClassifier extends Classifier { public static Long getIpProtoValue(Map<String, ParameterValue> params) { if (params == null) { return null; } if (params.get(IpProtoClassifierDefinition.PROTO_PARAM) == null) { return null; } Long proto = params.get(IpProtoClassifierDefinition.PROTO_PARAM).getIntValue(); if (proto != null) { return proto; } return null; } protected  IpProtoClassifier(Classifier parent); @Override ClassifierDefinitionId getId(); @Override ClassifierDefinition getClassifierDefinition(); @Override List<SupportedParameterValues> getSupportedParameterValues(); static Long getIpProtoValue(Map<String, ParameterValue> params);  }