com.rubecula.darwin.domain.helper
Class PhenotypeCacheKey

java.lang.Object
  extended by com.rubecula.darwin.domain.helper.PhenotypeCacheKey
All Implemented Interfaces:
net.sf.tostring0.Identifiable

public class PhenotypeCacheKey
extends java.lang.Object
implements net.sf.tostring0.Identifiable

This class is used to form the key for the PhenotypeCache

Author:
Robin Hillyard

Constructor Summary
PhenotypeCacheKey(Basic genes, net.sf.tostring0.Identifiable identifiable)
           
 
Method Summary
 boolean equals(java.lang.Object obj)
          Standard equals but based on CacheSignature.getSignature() instead of just _genes.
 java.lang.String getIdentifier()
           
 int hashCode()
          Standard hashCode but based on CacheSignature.getSignature() instead of just _genes.
 java.lang.String toString()
          TODO consider to use audit utilities
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PhenotypeCacheKey

public PhenotypeCacheKey(Basic genes,
                         net.sf.tostring0.Identifiable identifiable)
Parameters:
genes - the genes of the cached object
identifiable - an identifiable object to uniquely determine said genes, usually the id of the population to which the genes belong.
Method Detail

equals

public boolean equals(java.lang.Object obj)
Standard equals but based on CacheSignature.getSignature() instead of just _genes.

Overrides:
equals in class java.lang.Object
See Also:
Object.equals(java.lang.Object)

getIdentifier

public java.lang.String getIdentifier()
Specified by:
getIdentifier in interface net.sf.tostring0.Identifiable
See Also:
Identifiable.getIdentifier()

hashCode

public int hashCode()
Standard hashCode but based on CacheSignature.getSignature() instead of just _genes.

Overrides:
hashCode in class java.lang.Object
See Also:
Object.hashCode()

toString

public java.lang.String toString()
TODO consider to use audit utilities

Overrides:
toString in class java.lang.Object
See Also:
Object.toString()


Copyright © 2010 Rubecula Software, LLC. All Rights Reserved.