/** * Checks if this correlation key set contains all correlation keys from the given correlation key set. * * @param c a correlation key set * @return return true if this correlation key set is a superset */ public boolean containsAll(CorrelationKeySet c) { Iterator<CorrelationKey> e = c.iterator(); while (e.hasNext()) if (!contains(e.next())) return false; return true; }
public CorrelationKeySet getKeySet() { // backward-compatibility; add up keys if( _keys.size() > 0 && _keySet == null ) { _keySet = new CorrelationKeySet(); } for (CorrelationKey aKey : _keys) { if (aKey != null && !_keySet.contains(aKey)) { _keySet.add(aKey); } } return _keySet; }
public CorrelationKeySet getCorrelationKeySet() { // backward compatibility; add up if (_correlationKey != null) { if( _correlationKeySet == null ) { _correlationKeySet = new CorrelationKeySet(); } if(!_correlationKeySet.contains(_correlationKey)) { _correlationKeySet.add(_correlationKey); } } return _correlationKeySet; }