public abstract class FlyWeight extends Object implements Cloneable, Serializable
public class Property extends FlyWeight
{
public final static Property RO = new Property( "RO" );
public final static Property MV = new Property( "MV" );
private Property ( final Serializable id )
{
super( id );
}
}
Created 20. Januar 2003
| Modifier | Constructor and Description |
|---|---|
protected |
FlyWeight(Serializable id,
boolean ignoreDuplicateRegistration)
Construct instance of a flyweight.
|
| Modifier and Type | Method and Description |
|---|---|
Object |
clone()
Clone this flyweight.
|
boolean |
equals(Object obj)
Compare this and another object for equality.
|
static List |
getAllFlyWeights(Class flyWeightClass)
Get all so far registered flyweight instances of the given flyweight class.
|
static List |
getAllFlyWeightsInherited(Class flyWeightClass)
Get all so far registered flyweight instances of the given flyweight class
and all sub classes of that class.
|
static FlyWeight |
getFlyWeight(Class flyWeightClass,
Serializable id)
Get flyweight instance by id of the given flyweight class.
|
Serializable |
getFlyWeightId()
Get id of the flyweight instance.
|
static FlyWeight |
getFlyWeightInherited(Class flyWeightClass,
Serializable id)
Get flyweight instance by id of the given flyweight class and all sub
classes of that class.
|
int |
hashCode()
Get hashcode for this flyweight instance.
|
static List |
removeAllFlyWeights(Class flyWeightClass)
Remove all so far registered flyweight instances of the given flyweight
class.
|
static List |
removeAllFlyWeightsInherited(Class flyWeightClass)
Remove all so far registered flyweight instances of the given flyweight
class and all sub classes of that class.
|
static FlyWeight |
removeFlyWeight(Class flyWeightClass,
Serializable id)
Remove flyweight instance by id of the given flyweight class.
|
static FlyWeight |
removeFlyWeightInherited(Class flyWeightClass,
Serializable id)
Remove flyweight instance by id of the given flyweight class and all sub
classes of that class.
|
String |
toString()
Get descriptive text for this flyweight instance.
|
protected FlyWeight(Serializable id, boolean ignoreDuplicateRegistration) throws IllegalArgumentException
id - flyweight idignoreDuplicateRegistration - when true, don't throw
IllegalArgumentException exception when the id is already in useIllegalArgumentException - when the id is already in usepublic Serializable getFlyWeightId()
public String toString()
public int hashCode()
public boolean equals(Object obj)
public Object clone()
public static FlyWeight getFlyWeight(Class flyWeightClass, Serializable id)
id - flyweight idflyWeightClass - flyweight classpublic static FlyWeight getFlyWeightInherited(Class flyWeightClass, Serializable id)
id - flyweight idflyWeightClass - flyweight classpublic static FlyWeight removeFlyWeight(Class flyWeightClass, Serializable id)
id - flyweight idflyWeightClass - flyweight classpublic static FlyWeight removeFlyWeightInherited(Class flyWeightClass, Serializable id)
id - flyweight idflyWeightClass - flyweight classpublic static List getAllFlyWeights(Class flyWeightClass)
flyWeightClass - flyweight class for which all instances should be
looked uppublic static List getAllFlyWeightsInherited(Class flyWeightClass)
flyWeightClass - flyweight class (all sub classes of that class will
also be checked) for which all instances should be looked uppublic static List removeAllFlyWeights(Class flyWeightClass)
flyWeightClass - flyweight class for which all instances should be
removedpublic static List removeAllFlyWeightsInherited(Class flyWeightClass)
flyWeightClass - flyweight class (all sub classes of that class will
also be checked) for which all instances should be removed| Access Rights |
|---|
| SC | DC | Public Part | ACH |
|---|---|---|---|
[sap.com] KMC-CM
|
[sap.com] tc/km/frwk
|
api
|
EP-KM-CM
|
[sap.com] KMC-WPC
|
[sap.com] tc/kmc/wpc/wpcfacade
|
api
|
EP-PIN-WPC-WCM
|
Copyright 2021 SAP SE Complete Copyright Notice