de.topicmapslab.majortom.io
Class CXTMTopicMapWriter.TypeInstanceRoleSet

java.lang.Object
  extended by java.util.AbstractCollection<E>
      extended by java.util.AbstractSet<org.tmapi.core.Role>
          extended by de.topicmapslab.majortom.io.CXTMTopicMapWriter.TypeInstanceRoleSet
All Implemented Interfaces:
java.lang.Iterable<org.tmapi.core.Role>, java.util.Collection<org.tmapi.core.Role>, java.util.Set<org.tmapi.core.Role>
Enclosing class:
CXTMTopicMapWriter

private static class CXTMTopicMapWriter.TypeInstanceRoleSet
extends java.util.AbstractSet<org.tmapi.core.Role>

Immutable 'set' of two roles.


Nested Class Summary
private  class CXTMTopicMapWriter.TypeInstanceRoleSet.TypeInstanceRoleSetIterator
           
 
Field Summary
private  org.tmapi.core.Role _role1
           
private  org.tmapi.core.Role _role2
           
 
Constructor Summary
CXTMTopicMapWriter.TypeInstanceRoleSet(org.tmapi.core.Role role1, org.tmapi.core.Role role2)
           
 
Method Summary
 java.util.Iterator<org.tmapi.core.Role> iterator()
           
 int size()
           
 
Methods inherited from class java.util.AbstractSet
equals, hashCode, removeAll
 
Methods inherited from class java.util.AbstractCollection
add, addAll, clear, contains, containsAll, isEmpty, remove, retainAll, toArray, toArray, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.Set
add, addAll, clear, contains, containsAll, isEmpty, remove, retainAll, toArray, toArray
 

Field Detail

_role1

private final org.tmapi.core.Role _role1

_role2

private final org.tmapi.core.Role _role2
Constructor Detail

CXTMTopicMapWriter.TypeInstanceRoleSet

CXTMTopicMapWriter.TypeInstanceRoleSet(org.tmapi.core.Role role1,
                                       org.tmapi.core.Role role2)
Method Detail

iterator

public java.util.Iterator<org.tmapi.core.Role> iterator()
Specified by:
iterator in interface java.lang.Iterable<org.tmapi.core.Role>
Specified by:
iterator in interface java.util.Collection<org.tmapi.core.Role>
Specified by:
iterator in interface java.util.Set<org.tmapi.core.Role>
Specified by:
iterator in class java.util.AbstractCollection<org.tmapi.core.Role>

size

public int size()
Specified by:
size in interface java.util.Collection<org.tmapi.core.Role>
Specified by:
size in interface java.util.Set<org.tmapi.core.Role>
Specified by:
size in class java.util.AbstractCollection<org.tmapi.core.Role>