com.hammurapi.eventbus.tests.familyties.rules
Class SiblingRules
java.lang.Object
com.hammurapi.eventbus.tests.familyties.rules.FamilyTiesRules
com.hammurapi.eventbus.tests.familyties.rules.SiblingRules
public class SiblingRules
- extends FamilyTiesRules
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SiblingRules
public SiblingRules()
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 -