public UploadInfoRepository() { this(new ConcurrentHashSet<>()); }
public boolean add(UploadInfo info) { return uploadInfos.add(info); }
public boolean remove(UploadInfo info) { return uploadInfos.remove(info); }
public Stream<UploadInfo> stream() { return uploadInfos.stream(); } }
/** * Constructs a new set containing the elements in the specified collection. The * <tt>ConcurrentHashMap</tt> is created with default load factor (0.75) and an initial capacity * sufficient to contain the elements in the specified collection. * * @param c * the collection whose elements are to be placed into this set. * @throws NullPointerException * if the specified collection is null. */ public ConcurrentHashSet(final Collection<? extends E> c) { map = new ConcurrentHashMap<>(Math.max((int)(c.size() / .75f) + 1, 16)); addAll(c); }
public Stream<UploadInfo> stream() { return uploadInfos.stream(); } }
/** * Constructs a new set containing the elements in the specified collection. The * <tt>ConcurrentHashMap</tt> is created with default load factor (0.75) and an initial capacity * sufficient to contain the elements in the specified collection. * * @param c * the collection whose elements are to be placed into this set. * @throws NullPointerException * if the specified collection is null. */ public ConcurrentHashSet(Collection<? extends E> c) { map = new ConcurrentHashMap<E, Object>(Math.max((int)(c.size() / .75f) + 1, 16)); addAll(c); }
public Stream<FileUploadInfo> stream() { return fileUploadInfos.stream(); }
public boolean add(FileUploadInfo info) { return fileUploadInfos.add(info); }
public boolean remove(FileUploadInfo info) { return fileUploadInfos.remove(info); }
public FileUploadInfoRepository() { this(new ConcurrentHashSet<>()); }
public Stream<FileUploadInfo> stream() { return fileUploadInfos.stream(); }
public boolean add(UploadInfo info) { return uploadInfos.add(info); }
public boolean remove(UploadInfo info) { return uploadInfos.remove(info); }
public UploadInfoRepository() { this(new ConcurrentHashSet<>()); }
public synchronized Optional<FileUploadInfo> findByID(String fid) { getLogger().debug("findFileInfo({})", fid); return fileUploadInfos.stream() .filter(it -> it.getAttachmentRef().getId().equals(fid)) .findAny(); }
public boolean add(FileUploadInfo info) { return fileUploadInfos.add(info); }
public boolean remove(FileUploadInfo info) { return fileUploadInfos.remove(info); }
public FileUploadInfoRepository() { this(new ConcurrentHashSet<>()); }
public synchronized Optional<FileUploadInfo> findByID(String fid) { getLogger().debug("findFileInfo({})", fid); return fileUploadInfos.stream() .filter(it -> it.getAttachmentRef().getId().equals(fid)) .findAny(); }