public final class SAIDMap extends Object implements SAIDMapWritable, SAIDMapReadable
| Constructor and Description |
|---|
SAIDMap(com.io7m.jlog.Log in_log)
Construct a new empty map.
|
| Modifier and Type | Method and Description |
|---|---|
SAIDTargetContent |
get(SAID id)
Retrieve the content associated with the given ID, or
null
if there is no association. |
void |
put(SAID id,
SAIDTargetContent c)
Associate the given content with the given ID.
|
int |
size() |
public SAIDMap(@Nonnull com.io7m.jlog.Log in_log)
in_log - The log handlepublic SAIDTargetContent get(@Nonnull SAID id) throws com.io7m.jaux.Constraints.ConstraintError
SAIDMapReadablenull
if there is no association.get in interface SAIDMapReadableid - The IDcom.io7m.jaux.Constraints.ConstraintError - If any parameter is nullpublic void put(@Nonnull SAID id, @Nonnull SAIDTargetContent c) throws com.io7m.jaux.Constraints.ConstraintError
SAIDMapWritableput in interface SAIDMapWritableid - The IDc - The contentcom.io7m.jaux.Constraints.ConstraintError - If any parameter is null, or the given ID is
already usedpublic int size()
size in interface SAIDMapReadableCopyright © 2014. All rights reserved.