@Immutable public final class SAIDMap extends Object implements SAIDMapWritable, SAIDMapReadable
Constructor and Description |
---|
SAIDMap()
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() |
@Nullable public SAIDTargetContent get(SAID id)
SAIDMapReadable
null
if there
is no association.get
in interface SAIDMapReadable
id
- The IDpublic void put(SAID id, SAIDTargetContent c)
SAIDMapWritable
put
in interface SAIDMapWritable
id
- The IDc
- The contentpublic int size()
size
in interface SAIDMapReadable
Copyright © 2017 <code@io7m.com> http://io7m.com