public interface PropertyArrayContainedConcept extends PropertyArrayConcept
PropertyAtomContainedConcept
.Modifier and Type | Method and Description |
---|---|
int |
add(ContainedConcept instance)
Creates a
PropertyAtomContainedConcept with the given ContainedConcept
and appends it to the array. |
void |
add(int index,
ContainedConcept instance)
Creates a
PropertyAtomContainedConcept with the given ContainedConcept
and inserts it into the array at the specified position. |
PropertyAtomContainedConcept |
getPropertyAtomContainedConcept(ContainedConcept instance)
Finds the first
PropertyAtomContainedConcept with the given instance in this array. |
int |
getPropertyAtomContainedConceptIndex(ContainedConcept instance)
Finds the first
PropertyAtomContainedConcept with the given instance in this array. |
int |
put(ContainedConcept instance)
Returns the index of the
PropertyAtomContainedConcept in this array that has the given
ContainedConcept , if any, otherwise creates a PropertyAtomContainedConcept
that refers to the instance and appends it to the end of the array. |
PropertyAtomContainedConcept |
remove(ContainedConcept instance)
Removes the first
PropertyAtomContainedConcept with the given instance
that is found in this array. |
PropertyAtomContainedConcept |
removePropertyAtom(ContainedConcept instance)
Removes the first occurrence of
PropertyContainedConcept which has the given instance,
and returns it. |
void |
set(int index,
ContainedConcept value)
Sets the
PropertyContainedConcept at the given index to the given ContainedConcept . |
int add(ContainedConcept instance)
PropertyAtomContainedConcept
with the given ContainedConcept
and appends it to the array.instance
- the ContainedConcept
to add.ContainedConceptException
- if the ContainedConcept
instance already belongs
to a different parent.void add(int index, ContainedConcept instance)
PropertyAtomContainedConcept
with the given ContainedConcept
and inserts it into the array at the specified position.
This method shifts the PropertyAtomContainedConcept
currently at
that position (if any) and any subsequent PropertyAtomContainedConcept
to the right
(i.e. adds one to their indices).index
- the position at which to insert.instance
- the ContainedConcept
to add.ContainedConceptException
- if the ContainedConcept
instance already belongs
to a different parent.int put(ContainedConcept instance)
PropertyAtomContainedConcept
in this array that has the given
ContainedConcept
, if any, otherwise creates a PropertyAtomContainedConcept
that refers to the instance and appends it to the end of the array.instance
- the ContainedConcept
to search for in this array, or which will be added.ContainedConceptException
- - if the ContainedConcept
instance already belongs
to a different parent.PropertyAtomContainedConcept remove(ContainedConcept instance)
PropertyAtomContainedConcept
with the given instance
that is found in this array.
This method shifts all the subsequent array elements to the left
(i.e. substracts one to their indices).instance
- the ContainedConcept
to search for in the array.PropertyAtomDateTime
, or null if none matched.int getPropertyAtomContainedConceptIndex(ContainedConcept instance)
PropertyAtomContainedConcept
with the given instance in this array.instance
- the ContainedConcept
instance to search for in the array.PropertyAtomContainedConcept getPropertyAtomContainedConcept(ContainedConcept instance)
PropertyAtomContainedConcept
with the given instance in this array.instance
- the ContainedConcept
instance to search for in the array.PropertyAtomContainedConcept
that was found, or null if none was not found.void set(int index, ContainedConcept value)
PropertyContainedConcept
at the given index to the given ContainedConcept
.
If index == length
, this method will call add(index, value)
instead.index
- the index at which the concept is to be set.value
- the ContainedConcept
to set at the index.java.lang.IndexOutOfBoundsException
- - if the index is less than zero or more than the current size of the array.PropertyAtomContainedConcept removePropertyAtom(ContainedConcept instance)
PropertyContainedConcept
which has the given instance,
and returns it.
This method shifts all the subsequent array elements to the left (i.e. substracts one to their indices).
It returns null if no matching PropertyContainedConcept
is found.instance
- the instance to search for.PropertyContainedConcept
if any, else null.