Class Friend

java.lang.Object
  extended by Friend
All Implemented Interfaces:
Runnable

 class Friend
extends Object
implements Runnable

Alphonse and Gaston are friends.


Field Summary
(package private)  Friend myFriend
          My friend
 
Constructor Summary
Friend(String name)
          Constructor.
 
Method Summary
 void bowBack(Friend bower)
          Bow back to a friend.
 String getName()
          Get the name.
 void run()
          Bow to a friend and later bow back.
(package private)  void setFriend(Friend other)
          Make friends.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

myFriend

Friend myFriend
My friend

Constructor Detail

Friend

public Friend(String name)
Constructor. Sets the name.

Method Detail

getName

public String getName()
Get the name.


setFriend

void setFriend(Friend other)
Make friends.


run

public void run()
Bow to a friend and later bow back.

Specified by:
run in interface Runnable

bowBack

public void bowBack(Friend bower)
Bow back to a friend.