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

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

public class GrandRules
extends FamilyTiesRules


Constructor Summary
GrandRules()
           
 
Method Summary
 GrandFather infer(Child child, Father father)
          Father of parent is grandparent.
 GrandMother infer(Child child, Mother mother)
          Mother of parent is grandmother.
 GrandDaughter infer(Daughter daughter, Parent parent)
          Daughter of child is a granddaughter.
 GrandSon infer(Son son, Parent parent)
          Son of child is a grandson.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GrandRules

public GrandRules()
Method Detail

infer

public GrandSon infer(Son son,
                      Parent parent)
Son of child is a grandson.

Parameters:
son -
parent -
Returns:

infer

public GrandDaughter infer(Daughter daughter,
                           Parent parent)
Daughter of child is a granddaughter.

Parameters:
daughter -
parent -
Returns:

infer

public GrandFather infer(Child child,
                         Father father)
Father of parent is grandparent.

Parameters:
child -
father -
Returns:

infer

public GrandMother infer(Child child,
                         Mother mother)
Mother of parent is grandmother.

Parameters:
child -
mother -
Returns: