public class FlyweightPrototypes extends Object
| Modifier | Constructor and Description |
|---|---|
protected |
FlyweightPrototypes() |
| Modifier and Type | Method and Description |
|---|---|
static <T extends FlyweightPrototype<T>> |
copy(T prototype)
Creates a flyweight copy of the given object, or returns
null if the given object is null. |
static <T extends FlyweightPrototype<T>> |
copy(T[] prototype)
Creates a flyweight copy of an array of flyweight prototypes.
|
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.Copyright © 2006–2019 SYSTAP, LLC DBA Blazegraph. All rights reserved.