1: // @author Frank M. Carrano, Timothy M. Henry
2: // @version 5.0
4: // Add to the class ImmutableName:
5: public ImmutableName(Name aName)
6: {
7: first = aName.getFirst();
8: last = aName.getLast();
9: } // end constructor
11: public Name getMutable()
12: {
13: return new Name(first, last);
14: } // end getMutable
16: // Add to the class Name
17: public Name(ImmutableName aName)
18: {
19: first = aName.getFirst();
20: last = aName.getLast();
21: } // end constructor
23: public ImmutableName getImmutable()
24: {
25: return new ImmutableName(first, last);
26: } // end getMutable