Package com.logicaldoc.email
Class EmailCache
- All Implemented Interfaces:
Serializable,Cloneable,Iterable<String>,Collection<String>,Set<String>
Implements a cache of imported email, basically a email cache is represented
as an mailID.
- Since:
- 4.0
- Author:
- Matteo Caruso - LogicalDOC
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.util.HashSet
add, clear, clone, contains, isEmpty, iterator, newHashSet, remove, size, spliterator, toArray, toArrayMethods inherited from class java.util.AbstractSet
removeAllMethods inherited from class java.util.AbstractCollection
addAll, containsAll, retainAll, toStringMethods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArrayMethods inherited from interface java.util.Set
addAll, containsAll, removeAll, retainAll
-
Constructor Details
-
EmailCache
- Throws:
IOException
-
-
Method Details
-
getFile
-
read
Reads all data from file- Throws:
IOException- unable to read the cache file
-
write
Writes all entries into the file- Throws:
IOException- unable to write the cache file
-
append
Appends the last entry to the file- Throws:
IOException- error writing the CSV file
-
put
-
hashCode
public int hashCode()- Specified by:
hashCodein interfaceCollection<String>- Specified by:
hashCodein interfaceSet<String>- Overrides:
hashCodein classAbstractSet<String>
-
equals
- Specified by:
equalsin interfaceCollection<String>- Specified by:
equalsin interfaceSet<String>- Overrides:
equalsin classAbstractSet<String>
-