net.spy.factory
Interface Instance


public interface Instance

An instance of an object returned from a factory.


Method Summary
 boolean equals(java.lang.Object o)
          equals must be implemented for all Instance objects.
 int getId()
          Get the ID of this instance.
 int hashCode()
          HashCode must be implemented for all Instance objects.
 

Method Detail

getId

int getId()
Get the ID of this instance.


hashCode

int hashCode()
HashCode must be implemented for all Instance objects.

Overrides:
hashCode in class java.lang.Object

equals

boolean equals(java.lang.Object o)
equals must be implemented for all Instance objects.

Overrides:
equals in class java.lang.Object


Copyright © 1995-2005 SPY Internetworking. All Rights Reserved.