private C.Set<String> modified(C.Set<String> retained, Map<String, Long> newTimestamps) { C.Set<String> modified = C.newSet(); for (String path : retained) { long ts0 = timestamps.get(path); long ts1 = newTimestamps.get(path); if (ts0 != ts1) { modified.add(path); } } return modified; }
private C.Set<String> modified(C.Set<String> retained, Map<String, Long> newTimestamps) { C.Set<String> modified = C.newSet(); for (String path : retained) { long ts0 = timestamps.get(path); long ts1 = newTimestamps.get(path); if (ts0 != ts1) { modified.add(path); } } return modified; }
@Override public Set<java.util.Map.Entry<K, V>> entrySet() { Set<java.util.Map.Entry<K, V>> set = C.newSet(); for (K k : _m.keySet()) { V v = _m.get(k); set.add(Entry.valueOf(k, v)); } return set; }
/** * Create an mutable set contains specified elements * @param t1 one element to be added into the result set * @param ta an array from which all elements will be added into the result set * @param <T> the element type * @return a set that contains all elements specified */ public static <T> Set<T> newSet(T t1, T... ta) { Set<T> set = new DelegatingSet<>(); set.add(t1); Collections.addAll(set, ta); return set; }
private void _addWith(String clsName) { withList.add(Type.getType(clsName).getClassName()); }
/** * Create an mutable set contains specified elements * @param t1 one element to be added into the result set * @param ta an array from which all elements will be added into the result set * @param <T> the element type * @return a set that contains all elements specified */ public static <T> Set<T> newSet(T t1, T... ta) { Set<T> set = new DelegatingSet<>(); set.add(t1); Collections.addAll(set, ta); return set; }
public Set<$.Binary<K, V>> zip() { C.Set<$.Binary<K, V>> zipped = C.newSet(); for (java.util.Map.Entry<K, V> entry : entrySet()) { zipped.add($.T2(entry.getKey(), entry.getValue())); } return zipped; }
@Override public C.Set<T> with(T element, T... elements) { C.Set<T> copy = C.newSet(this); copy.add(element); copy.addAll(C.listOf(elements)); return copy; }
private void _addWith(String clsName) { withList.add(Type.getType(clsName).getClassName()); }
public Set<$.Binary<K, V>> zip() { C.Set<$.Binary<K, V>> zipped = C.newSet(); for (java.util.Map.Entry<K, V> entry : entrySet()) { zipped.add($.T2(entry.getKey(), entry.getValue())); } return zipped; }
@Override public Set<java.util.Map.Entry<K, V>> entrySet() { Set<java.util.Map.Entry<K, V>> set = C.newSet(); for (K k : _m.keySet()) { V v = _m.get(k); set.add(Entry.valueOf(k, v)); } return set; }
@Override public C.Set<T> with(T element) { C.Set<T> copy = C.newSet(this); copy.add(element); return copy; }
@Override public C.Set<T> with(T element) { C.Set<T> copy = C.newSet(this); copy.add(element); return copy; }
@Override public C.Set<T> with(T element, T... elements) { C.Set<T> copy = C.newSet(this); copy.add(element); copy.addAll(C.listOf(elements)); return copy; }