public class SortedRelationImpl extends Object implements SortedRelationOperations
Modifier and Type | Field and Description |
---|---|
protected SortedVector |
data |
protected org.jacorb.collection.IteratorFactory |
iterator_factory |
protected DynArray |
iterators |
protected SortedVector |
keys |
protected OperationsOperations |
ops |
protected POA |
poa |
protected KeyNode |
test_key |
Constructor and Description |
---|
SortedRelationImpl(OperationsOperations ops,
POA poa,
org.jacorb.collection.IteratorFactory iterator_factory,
int expected_size) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
contains_all_from, contains_element, locate_element, locate_next_different_element, locate_next_element, locate_or_add_element_set_iterator, locate_or_add_element, number_of_different_elements, number_of_occurrences, remove_all_occurrences, remove_element
add_or_replace_element_with_key_set_iterator, add_or_replace_element_with_key, contains_all_keys_from, contains_element_with_key, key_type, key, keys, locate_element_with_key, locate_next_element_with_different_key, locate_next_element_with_key, locate_or_add_element_with_key_set_iterator, locate_or_add_element_with_key, number_of_different_keys, number_of_elements_with_key, remove_all_elements_with_key, remove_element_with_key, replace_element_with_key_set_iterator, replace_element_with_key, retrieve_element_with_key
create_ordered_iterator, remove_element_at_position, remove_first_element, remove_last_element, retrieve_element_at_position, retrieve_first_element, retrieve_last_element
add_all_from, add_element_set_iterator, add_element, all_elements_do, create_iterator, destroy, element_type, is_empty, number_of_elements, remove_all, remove_element_at, replace_element_at, retrieve_element_at
protected SortedVector keys
protected KeyNode test_key
protected DynArray iterators
protected POA poa
protected OperationsOperations ops
protected org.jacorb.collection.IteratorFactory iterator_factory
protected SortedVector data
public SortedRelationImpl(OperationsOperations ops, POA poa, org.jacorb.collection.IteratorFactory iterator_factory, int expected_size)
public int compare(SortedRelation collector, Comparator comparison)
compare
in interface SortedRelationOperations
public boolean contains_element(Any element) throws ElementInvalid
contains_element
in interface EqualityCollectionOperations
ElementInvalid
public boolean contains_all_from(Collection collector) throws ElementInvalid
contains_all_from
in interface EqualityCollectionOperations
ElementInvalid
public boolean locate_or_add_element(Any element) throws ElementInvalid
locate_or_add_element
in interface EqualityCollectionOperations
ElementInvalid
public boolean locate_or_add_element_set_iterator(Any element, Iterator where) throws ElementInvalid, IteratorInvalid
locate_or_add_element_set_iterator
in interface EqualityCollectionOperations
ElementInvalid
IteratorInvalid
public boolean locate_element(Any element, Iterator where) throws ElementInvalid, IteratorInvalid
locate_element
in interface EqualityCollectionOperations
ElementInvalid
IteratorInvalid
public boolean locate_next_element(Any element, Iterator where) throws ElementInvalid, IteratorInvalid
locate_next_element
in interface EqualityCollectionOperations
ElementInvalid
IteratorInvalid
public boolean locate_next_different_element(Iterator where) throws IteratorInvalid, IteratorInBetween
locate_next_different_element
in interface EqualityCollectionOperations
IteratorInvalid
IteratorInBetween
public boolean remove_element(Any element) throws ElementInvalid
remove_element
in interface EqualityCollectionOperations
ElementInvalid
public int remove_all_occurrences(Any element) throws ElementInvalid
remove_all_occurrences
in interface EqualityCollectionOperations
ElementInvalid
public int number_of_different_elements()
number_of_different_elements
in interface EqualityCollectionOperations
public int number_of_occurrences(Any element) throws ElementInvalid
number_of_occurrences
in interface EqualityCollectionOperations
ElementInvalid
public Iterator create_iterator(boolean read_only)
create_iterator
in interface CollectionOperations
public TypeCode key_type()
key_type
in interface KeyCollectionOperations
public boolean contains_element_with_key(Any key) throws KeyInvalid
contains_element_with_key
in interface KeyCollectionOperations
KeyInvalid
public boolean contains_all_keys_from(KeyCollection collector) throws KeyInvalid
contains_all_keys_from
in interface KeyCollectionOperations
KeyInvalid
public boolean locate_or_add_element_with_key(Any element) throws ElementInvalid
locate_or_add_element_with_key
in interface KeyCollectionOperations
ElementInvalid
public boolean locate_or_add_element_with_key_set_iterator(Any element, Iterator where) throws ElementInvalid, IteratorInvalid
locate_or_add_element_with_key_set_iterator
in interface KeyCollectionOperations
ElementInvalid
IteratorInvalid
public boolean add_or_replace_element_with_key(Any element) throws ElementInvalid
add_or_replace_element_with_key
in interface KeyCollectionOperations
ElementInvalid
public boolean add_or_replace_element_with_key_set_iterator(Any element, Iterator where) throws ElementInvalid, IteratorInvalid
add_or_replace_element_with_key_set_iterator
in interface KeyCollectionOperations
ElementInvalid
IteratorInvalid
public boolean remove_element_with_key(Any key) throws KeyInvalid
remove_element_with_key
in interface KeyCollectionOperations
KeyInvalid
public int remove_all_elements_with_key(Any key) throws KeyInvalid
remove_all_elements_with_key
in interface KeyCollectionOperations
KeyInvalid
public boolean replace_element_with_key(Any element) throws ElementInvalid
replace_element_with_key
in interface KeyCollectionOperations
ElementInvalid
public boolean replace_element_with_key_set_iterator(Any element, Iterator where) throws ElementInvalid, IteratorInvalid
replace_element_with_key_set_iterator
in interface KeyCollectionOperations
ElementInvalid
IteratorInvalid
public boolean retrieve_element_with_key(Any key, AnyHolder element) throws KeyInvalid
retrieve_element_with_key
in interface KeyCollectionOperations
KeyInvalid
public void key(Any element, AnyHolder a_key) throws ElementInvalid
key
in interface KeyCollectionOperations
ElementInvalid
public void keys(Any[] elements, AnySequenceHolder a_keys) throws ElementInvalid
keys
in interface KeyCollectionOperations
ElementInvalid
public boolean locate_element_with_key(Any key, Iterator where) throws KeyInvalid, IteratorInvalid
locate_element_with_key
in interface KeyCollectionOperations
KeyInvalid
IteratorInvalid
public boolean locate_next_element_with_key(Any key, Iterator where) throws KeyInvalid, IteratorInvalid
locate_next_element_with_key
in interface KeyCollectionOperations
KeyInvalid
IteratorInvalid
public boolean locate_next_element_with_different_key(Iterator where) throws IteratorInBetween, IteratorInvalid
locate_next_element_with_different_key
in interface KeyCollectionOperations
IteratorInBetween
IteratorInvalid
public int number_of_different_keys()
number_of_different_keys
in interface KeyCollectionOperations
public int number_of_elements_with_key(Any key) throws KeyInvalid
number_of_elements_with_key
in interface KeyCollectionOperations
KeyInvalid
public boolean locate_first_element_with_key(Any key, Iterator where) throws KeyInvalid, IteratorInvalid
locate_first_element_with_key
in interface KeySortedCollectionOperations
KeyInvalid
IteratorInvalid
public boolean locate_last_element_with_key(Any key, Iterator where) throws KeyInvalid, IteratorInvalid
locate_last_element_with_key
in interface KeySortedCollectionOperations
KeyInvalid
IteratorInvalid
public boolean locate_previous_element_with_key(Any key, Iterator where) throws KeyInvalid, IteratorInvalid
locate_previous_element_with_key
in interface KeySortedCollectionOperations
KeyInvalid
IteratorInvalid
public boolean locate_previous_element_with_different_key(Iterator where) throws IteratorInBetween, IteratorInvalid
locate_previous_element_with_different_key
in interface KeySortedCollectionOperations
IteratorInBetween
IteratorInvalid
protected void element_inserted(int pos)
protected void element_removed(int pos, Any old)
protected void element_replaced(int pos, Any old)
protected void check_key(Any key) throws KeyInvalid
KeyInvalid
protected void key_inserted(Any key, int pos)
protected void key_removed(Any key)
public void remove_element_at_position(int position) throws PositionInvalid
remove_element_at_position
in interface OrderedCollectionOperations
PositionInvalid
public void remove_first_element() throws EmptyCollection
remove_first_element
in interface OrderedCollectionOperations
EmptyCollection
public void remove_last_element() throws EmptyCollection
remove_last_element
in interface OrderedCollectionOperations
EmptyCollection
public boolean retrieve_element_at_position(int position, AnyHolder element) throws PositionInvalid
retrieve_element_at_position
in interface OrderedCollectionOperations
PositionInvalid
public boolean retrieve_first_element(AnyHolder element) throws EmptyCollection
retrieve_first_element
in interface OrderedCollectionOperations
EmptyCollection
public boolean retrieve_last_element(AnyHolder element) throws EmptyCollection
retrieve_last_element
in interface OrderedCollectionOperations
EmptyCollection
public OrderedIterator create_ordered_iterator(boolean read_only, boolean reverse_iteration)
create_ordered_iterator
in interface OrderedCollectionOperations
public TypeCode element_type()
public boolean add_element(Any element) throws ElementInvalid
ElementInvalid
public boolean add_element_set_iterator(Any element, Iterator where) throws IteratorInvalid, ElementInvalid
IteratorInvalid
ElementInvalid
public void add_all_from(Collection collector) throws ElementInvalid
ElementInvalid
public void remove_element_at(Iterator where) throws IteratorInvalid, IteratorInBetween
IteratorInvalid
IteratorInBetween
public int remove_all()
public void replace_element_at(Iterator where, Any element) throws IteratorInvalid, IteratorInBetween, ElementInvalid
public boolean retrieve_element_at(Iterator where, AnyHolder element) throws IteratorInvalid, IteratorInBetween
IteratorInvalid
IteratorInBetween
public boolean all_elements_do(Command what)
public int number_of_elements()
public boolean is_empty()
public void destroy()
public int element_add(Any element) throws ElementInvalid
ElementInvalid
public void element_remove(int pos) throws PositionInvalid, EmptyCollection
PositionInvalid
EmptyCollection
public int element_replace(int pos, Any element) throws PositionInvalid, ElementInvalid
PositionInvalid
ElementInvalid
public Any element_retrieve(int pos) throws PositionInvalid
PositionInvalid
public org.jacorb.collection.PositionalIteratorImpl check_iterator(Iterator iter) throws IteratorInvalid
IteratorInvalid
public boolean is_this_you(Collection col)
public void destroy_me(org.jacorb.collection.PositionalIteratorImpl i)
public void check_element(Any element) throws ElementInvalid
ElementInvalid
Copyright © 2017 JacORB. All rights reserved.