static MutableSet strings;
Container
of all unique strings. The container mechanism
will ensure only those strings are kept that are still needed.
void load Array arguments;
strings
Container
.
instance (id) with String s;
UniqueString
containing the same information as the
String
s
. This is the only method to be used to create unique
strings.
protected instance (id) awake instance (id) us equal selector cmp;
us
in the strings
, comparing them using the
selector cmp
. If the string is found, the old string is returned.
Otherwise, us
is added to the strings
and it is returned.
int hash;
boolean equal String other;
other
to compare itself to this UniqueString
.
boolean equalUniqueString UniqueString other;
TRUE
. This is simple pointer comparison.
int compare id other;
boolean equal String other;
boolean equalUniqueString UniqueString other;
int hash;
id awakeAfterUsingCoder Decoder coder;
boolean equal String other;
UniqueString
)
super.
boolean equalUniqueString UniqueString other;
UniqueString
)
super.
int hash;
UniqueByteString
.
id awakeAfterUsingCoder Decoder coder;