List of usage examples for org.apache.commons.collections4.keyvalue MultiKey MultiKey
public MultiKey(final K[] keys, final boolean makeClone)
From source file:libepg.epg.section.descriptor.contentdescriptor.NIBBLE_LEVEL_2.java
/** * ??????//from w w w . j av a 2s . c om * * @param parentCode * @param code * @return ????null */ public static synchronized NIBBLE_LEVEL_2 reverseLookUp(int parentCode, int code) { MultiKey<Integer> key = new MultiKey(parentCode, code); return rev.get(key); }
From source file:org.apache.jena.geosparql.implementation.registry.MathTransformRegistry.java
public synchronized static final MathTransform getMathTransform(CoordinateReferenceSystem sourceCRS, CoordinateReferenceSystem targetCRS) throws FactoryException, MismatchedDimensionException, TransformException { MathTransform transform;/*from ww w .j a v a 2 s. c om*/ MultiKey<CoordinateReferenceSystem> key = new MultiKey<>(sourceCRS, targetCRS); if (MATH_TRANSFORM_REGISTRY.containsKey(key)) { transform = MATH_TRANSFORM_REGISTRY.get(key); } else { transform = CRS.findOperation(sourceCRS, targetCRS, null).getMathTransform(); MATH_TRANSFORM_REGISTRY.put(key, transform); } return transform; }