P
phillipwei
You have a class that's returning an immutable set of objects that are
the "same" objects. If you were for some reason representing the
alphabet as full-fledged objects, and each time you requested "A" it
would return the exact same object "A".
Or is this so basic it's not really a "pattern"?
the "same" objects. If you were for some reason representing the
alphabet as full-fledged objects, and each time you requested "A" it
would return the exact same object "A".
Or is this so basic it's not really a "pattern"?