org.csc.phynixx.common.utils
Class GroupingAssociation<X,Y,A>

java.lang.Object
  extended by org.csc.phynixx.common.utils.GroupingAssociation<X,Y,A>

public class GroupingAssociation<X,Y,A>
extends Object

Associations betweeen Instances of X and Y can be grouped. To join a group you have to give an assoc you want to share the group. You can assign a group Value to a group Created by christoph on 09.02.14.


Constructor Summary
GroupingAssociation()
           
 
Method Summary
 void associate(X x, Y y)
           
 void disassociate(X x, Y y)
           
 Set<Y> getX(X x)
           
 Set<X> getY(Y y)
           
 void removeX(X x)
           
 void removeY(Y y)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GroupingAssociation

public GroupingAssociation()
Method Detail

associate

public void associate(X x,
                      Y y)

getX

public Set<Y> getX(X x)

getY

public Set<X> getY(Y y)

removeX

public void removeX(X x)

removeY

public void removeY(Y y)

disassociate

public void disassociate(X x,
                         Y y)


Copyright © 2015. All rights reserved.