@Test public void asMap() { assertEquals(Map.of(), propagationByResource.asMap()); }
public Map<T, ResourceOperation> asMap() { Map<T, ResourceOperation> result = new HashMap<>(); Stream.of(ResourceOperation.values()). forEach(operation -> get(operation).forEach(resource -> result.put(resource, operation))); return result; }
PropagationByResource implements Serializable { public Map<T, ResourceOperation> asMap() { Map<T, ResourceOperation> result = new HashMap<>(); Stream.of(ResourceOperation.values()). forEach(operation -> get(operation).forEach(resource -> result.put(resource, operation))); return result; } }
PropagationByResource implements Serializable { public Map<T, ResourceOperation> asMap() { Map<T, ResourceOperation> result = new HashMap<>(); Stream.of(ResourceOperation.values()). forEach(operation -> get(operation).forEach(resource -> result.put(resource, operation))); return result; } PropagationByResource(); }
PropagationByResource implements Serializable { public Map<T, ResourceOperation> asMap() { Map<T, ResourceOperation> result = new HashMap<>(); Stream.of(ResourceOperation.values()). forEach(operation -> get(operation).forEach(resource -> result.put(resource, operation))); return result; } PropagationByResource(); final void purge(); final boolean add(final ResourceOperation type, final T key); boolean addAll(final ResourceOperation type, final Collection<T> keys); final boolean remove(final ResourceOperation type, final T key); boolean removeAll(final ResourceOperation type, final Set<T> keys); boolean removeAll(final Collection<T> keys); boolean retainAll(final Collection<T> keys); boolean contains(final ResourceOperation type, final T key); boolean contains(final T key); final Set<T> get(final ResourceOperation type); Map<T, ResourceOperation> asMap(); final void set(final ResourceOperation type, final Collection<T> keys); final void merge(final PropagationByResource<T> propByRes); void clear(); final boolean isEmpty(); Map<String, String> getOldConnObjectKeys(); String getOldConnObjectKey(final String resourceKey); void addOldConnObjectKey(final String resourceKey, final String oldConnObjectKey); @Override String toString(); }
PropagationByResource implements Serializable { public Map<T, ResourceOperation> asMap() { Map<T, ResourceOperation> result = new HashMap<>(); Stream.of(ResourceOperation.values()). forEach(operation -> get(operation).forEach(resource -> result.put(resource, operation))); return result; } PropagationByResource(); final void purge(); final boolean add(final ResourceOperation type, final T key); boolean addAll(final ResourceOperation type, final Collection<T> keys); final boolean remove(final ResourceOperation type, final T key); boolean removeAll(final ResourceOperation type, final Set<T> keys); boolean removeAll(final Collection<T> keys); boolean retainAll(final Collection<T> keys); boolean contains(final ResourceOperation type, final T key); boolean contains(final T key); final Set<T> get(final ResourceOperation type); Map<T, ResourceOperation> asMap(); final void set(final ResourceOperation type, final Collection<T> keys); final void merge(final PropagationByResource<T> propByRes); void clear(); final boolean isEmpty(); Map<String, String> getOldConnObjectKeys(); String getOldConnObjectKey(final String resourceKey); void addOldConnObjectKey(final String resourceKey, final String oldConnObjectKey); @Override String toString();  }