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 SummaryConstructors
- 
Method SummaryMethods inherited from class java.util.HashSetadd, clear, clone, contains, isEmpty, iterator, newHashSet, remove, size, spliterator, toArray, toArrayMethods inherited from class java.util.AbstractSetremoveAllMethods inherited from class java.util.AbstractCollectionaddAll, containsAll, retainAll, toStringMethods inherited from interface java.util.CollectionparallelStream, removeIf, stream, toArrayMethods inherited from interface java.util.SetaddAll, containsAll, removeAll, retainAll
- 
Constructor Details- 
EmailCache- Throws:
- IOException
 
 
- 
- 
Method Details- 
getFile
- 
readReads all data from file- Throws:
- IOException- unable to read the cache file
 
- 
writeWrites all entries into the file- Throws:
- IOException- unable to write the cache file
 
- 
appendAppends the last entry to the file- Throws:
- IOException- error writing the CSV file
 
- 
put
- 
hashCodepublic int hashCode()- Specified by:
- hashCodein interface- Collection<String>
- Specified by:
- hashCodein interface- Set<String>
- Overrides:
- hashCodein class- AbstractSet<String>
 
- 
equals- Specified by:
- equalsin interface- Collection<String>
- Specified by:
- equalsin interface- Set<String>
- Overrides:
- equalsin class- AbstractSet<String>
 
 
-