com.hammurapi.eventbus.tests.familyties.rules
Class SiblingRules

Show UML class diagram
java.lang.Object
  extended by com.hammurapi.eventbus.tests.familyties.rules.FamilyTiesRules
      extended by com.hammurapi.eventbus.tests.familyties.rules.SiblingRules

public class SiblingRules
extends FamilyTiesRules


Constructor Summary
SiblingRules()
           
 
Method Summary
 void infer(FamilyTiesEventDispatchContext dispatchContext, Child child, Child anotherChild)
          If two children have common parent then they are siblings.
 Sibling infer(FamilyTiesEventDispatchContext dispatchContext, Sibling sibling)
          Male sibling is brother, female sibling is sister.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SiblingRules

public SiblingRules()
Method Detail

infer

public Sibling infer(FamilyTiesEventDispatchContext dispatchContext,
                     Sibling sibling)
Male sibling is brother, female sibling is sister. If A is a sibling of B then B is a sibling of A.

Parameters:
sibling -
Returns:
Brother or Sister.

infer

public void infer(FamilyTiesEventDispatchContext dispatchContext,
                  Child child,
                  Child anotherChild)
If two children have common parent then they are siblings.

Parameters:
child -
anotherChild -