1 /***
2 * Created by IntelliJ IDEA.
3 * User: damian
4 * Date: 20-Feb-2004
5 * Time: 20:46:54
6 * To change this template use File | Settings | File Templates.
7 */
8 package org.neo.swarm.core.aop.silc.comp;
9
10 import java.io.Serializable;
11
12 public class Perspective implements Serializable {
13 public static final Perspective DEFAULT = new Perspective("DEFAULT");
14 public static final Perspective REMOTE = new Perspective("REMOTE");
15
16 private String myName;
17
18 private Perspective(String name) {
19 myName = name;
20 }
21
22 public String toString() {
23 return myName;
24 }
25
26 public int hashCode () {
27 return myName.hashCode();
28 }
29
30 public boolean equals (Object o) {
31 return myName.equals(o.toString());
32 }
33 }