org.gcube.common.core.utils.handlers.events
Class Topic

java.lang.Object
  extended by org.gcube.common.core.utils.handlers.events.Topic
All Implemented Interfaces:
GCUBETopic
Direct Known Subclasses:
Topic.LifetimeTopic

public abstract class Topic
extends Object
implements GCUBETopic

Partial implementation of GCUBETopic for topics associated with and handled by GCUBEHandlers.

For convenience of its subclasses, Topic.LifetimeTopic redefines equals(Object) and hashCode() to equate different instances of the same subclass (cf. GCUBETopic). Alternatively, subclasses can be defined as singleton classes, as exemplified by Topic.LifetimeTopic.

Author:
Fabio Simeoni (University of Strathclyde)

Nested Class Summary
static class Topic.LifetimeTopic
          Specialises Topic for LifetimeEvents.
 
Constructor Summary
Topic()
           
 
Method Summary
 boolean equals(Object o)
          
 int hashCode()
          
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Topic

public Topic()
Method Detail

equals

public boolean equals(Object o)

Overrides:
equals in class Object

hashCode

public int hashCode()

Overrides:
hashCode in class Object


Copyright © 2013. All Rights Reserved.