|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectit.unimi.dsi.mg4j.util.FlyweightPrototypes
dsiutils.
@Deprecated public class FlyweightPrototypes
A class providing static methods and objects that do useful things with flyweight protoypes.
| Constructor Summary | |
|---|---|
protected |
FlyweightPrototypes()
Deprecated. |
| Method Summary | ||
|---|---|---|
static
|
copy(T prototype)
Deprecated. Creates a flyweight copy of the given object, or returns null if the given object is null. |
|
static
|
copy(T[] prototype)
Deprecated. Creates a flyweight copy of an array of flyweight prototypes. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
protected FlyweightPrototypes()
| Method Detail |
|---|
public static <T extends FlyweightPrototype<T>> T[] copy(T[] prototype)
T - the type of FlyweightPrototype you want to copy, that is, the
type of the elements of prototype.prototype - an array of prototypes.
prototype, obtained by invoking
FlyweightPrototype.copy() on each element.public static <T extends FlyweightPrototype<T>> T copy(T prototype)
null if the given object is null.
T - the type of FlyweightPrototype you want to copy, that is, the
type of prototype.prototype - a prototype to be copied, or null.
null, if prototype is null;
otherwise,a flyweight copy of prototype.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||