cdIds.putIfAbsent(ids[CD_INDEX], new ArrayList<>(5)); if (part.getSd().getCols() == null) { part.getSd().setCols(cdIds.get(ids[CD_INDEX]));
@Override public V putIfAbsent(K key, V value) { ExpiringValue<V> wrapValue = new ExpiringValue<>(value); ExpiringValue<V> preVal = data.putIfAbsent(key, wrapValue); if (preVal == null || preVal.expireAt < System.currentTimeMillis()) { return null; } return preVal.value; }
@Override public void addProperty(Property prop) { if(attributeMappings == null){ attributeMappings = new TreeMap<>( ); } if ( declaredAttributeMappings == null ) { declaredAttributeMappings = new TreeMap<>( ); } attributeMappings.putIfAbsent( prop.getName(), prop ); declaredAttributeMappings.putIfAbsent( prop.getName(), prop ); prop.setPersistentClass( getPersistentClass() ); }
String name = i.getPropName(); String value = i.getPropValue(); map.putIfAbsent( name, LoadedConfigProperty.withNameAndValue(name, value).origin(origin).build());
final Class<?>[] parameterTypes = method.getParameterTypes(); final BehaviorGuardEvaluatorRegistry.MethodIdentifier ident = new BehaviorGuardEvaluatorRegistry.MethodIdentifier(method, parameterTypes); identifiers.putIfAbsent(ident, method);
subsumptionHierarchyDown.putIfAbsent(sub, new TreeSet<>()); subsumptionHierarchyUp.putIfAbsent(sub, new TreeSet<>()); subsumptionHierarchyDown.putIfAbsent(sup, new TreeSet<>()); subsumptionHierarchyUp.putIfAbsent(sup, new TreeSet<>());
subsumptionHierarchyDown.putIfAbsent(sub, new TreeSet<>()); subsumptionHierarchyUp.putIfAbsent(sub, new TreeSet<>()); subsumptionHierarchyDown.putIfAbsent(sup, new TreeSet<>()); subsumptionHierarchyUp.putIfAbsent(sup, new TreeSet<>());
Optional.ofNullable(descriptor.findFieldByName(toProtobufFormat(kprop.getName()))) .ifPresent(field -> props .putIfAbsent(field.getNumber(), kprop)));
Optional.ofNullable(descriptor.findFieldByName(toProtobufFormat(kprop.getName()))) .ifPresent(field -> props .putIfAbsent(field.getNumber(), kprop)));