public class UniqueSlotContainer extends java.lang.Object implements IUniqueSlotContainer
Modifier and Type | Field and Description |
---|---|
protected boolean |
_useMutable |
Constructor and Description |
---|
UniqueSlotContainer() |
UniqueSlotContainer(boolean useMutableSlots) |
UniqueSlotContainer(IUniqueSlotContainer container,
boolean useMutableSlots) |
Modifier and Type | Method and Description |
---|---|
void |
addSlot(ISlot slot)
Adds a slot
|
void |
clear()
clear the slots
|
protected ISlot |
createSlot(ISlot slot) |
java.util.Collection<IMutableSlot> |
getMutableSlots() |
ISlot |
getSlot(java.lang.String slotName)
return the actual named slot.
|
java.util.Collection<? extends ISlot> |
getSlots()
return a duplicate copy of all the slots
|
java.util.Collection<ISlot> |
getSlots(java.util.Collection<ISlot> slots) |
boolean |
hasSlot(java.lang.String slotName) |
void |
removeSlot(ISlot slot)
remove a slot
|
public UniqueSlotContainer()
public UniqueSlotContainer(boolean useMutableSlots)
public UniqueSlotContainer(IUniqueSlotContainer container, boolean useMutableSlots)
public ISlot getSlot(java.lang.String slotName)
IUniqueSlotContainer
getSlot
in interface IUniqueSlotContainer
public void addSlot(ISlot slot)
ISlotContainer
addSlot
in interface ISlotContainer
slot
- The feature to be added to the ISlot attributepublic java.util.Collection<? extends ISlot> getSlots()
ISlotContainer
getSlots
in interface ISlotContainer
public java.util.Collection<ISlot> getSlots(java.util.Collection<ISlot> slots)
getSlots
in interface ISlotContainer
public java.util.Collection<IMutableSlot> getMutableSlots()
public void removeSlot(ISlot slot)
ISlotContainer
removeSlot
in interface ISlotContainer
slot
- Description of Parameterpublic boolean hasSlot(java.lang.String slotName)
hasSlot
in interface IUniqueSlotContainer
public void clear()