@Nonnull
 public final EChange putAllIn(@Nonnull final Map<? extends KEYTYPE, ? extends VALUETYPE> aMap) {
   EChange eChange = EChange.UNCHANGED;
   for (final Map.Entry<? extends KEYTYPE, ? extends VALUETYPE> aEntry : aMap.entrySet())
     eChange = eChange.or(putSingle(aEntry.getKey(), aEntry.getValue()));
   return eChange;
 }
Ejemplo n.º 2
0
 @Nonnull
 public EChange deleteFormState(@Nonnull final String sFlowID) {
   m_aRWLock.writeLock().lock();
   try {
     return EChange.valueOf(m_aMap.remove(sFlowID) != null);
   } finally {
     m_aRWLock.writeLock().unlock();
   }
 }
 @Nonnull
 public final EChange removeSingle(
     @Nullable final KEYTYPE aKey, @Nullable final VALUETYPE aValue) {
   final COLLTYPE aCont = get(aKey);
   return aCont == null ? EChange.UNCHANGED : EChange.valueOf(aCont.remove(aValue));
 }
 @Nonnull
 public final EChange putSingle(@Nullable final KEYTYPE aKey, @Nullable final VALUETYPE aValue) {
   return EChange.valueOf(getOrCreate(aKey).add(aValue));
 }