@SuppressWarnings({ "rawtypes", "unchecked" }) @Override public Object applyToKeyInMap(ListConfigKey<T> key, Map target) { if (clearFirst) { StructuredModification<StructuredConfigKey> clearing = StructuredModifications.clearing(); clearing.applyToKeyInMap(key, target); } for (T o: this) target.put(key.subKey(), o); return null; } }
@SuppressWarnings({ "rawtypes" }) @Override public Object applyToKeyInMap(MapConfigKey<V> key, Map target) { if (clearFirst) { StructuredModification<StructuredConfigKey> clearing = StructuredModifications.clearing(); clearing.applyToKeyInMap(key, target); } return key.applyValueToMap(new LinkedHashMap<String,V>(this), target); } }
@SuppressWarnings({ "rawtypes", "unchecked" }) @Override public Object applyToKeyInMap(SetConfigKey<T> key, Map target) { if (clearFirst) { StructuredModification<StructuredConfigKey> clearing = StructuredModifications.clearing(); clearing.applyToKeyInMap(key, target); } for (T o: this) target.put(key.subKey(), o); return null; } }