com.espertech.esper.client.context
Class ContextPartitionIdentifierHash

java.lang.Object
  extended by com.espertech.esper.client.context.ContextPartitionIdentifier
      extended by com.espertech.esper.client.context.ContextPartitionIdentifierHash
All Implemented Interfaces:
java.io.Serializable

public class ContextPartitionIdentifierHash
extends ContextPartitionIdentifier

Context partition identifier for hash context.

See Also:
Serialized Form

Constructor Summary
ContextPartitionIdentifierHash()
          Ctor.
ContextPartitionIdentifierHash(int hash)
          Ctor.
 
Method Summary
 boolean compareTo(ContextPartitionIdentifier other)
          Compare identifiers returning a boolean indicator whether identifier information matches.
 int getHash()
          Returns the hash code.
 void setHash(int hash)
          Sets the hash code.
 java.lang.String toString()
           
 
Methods inherited from class com.espertech.esper.client.context.ContextPartitionIdentifier
getContextPartitionId, setContextPartitionId
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ContextPartitionIdentifierHash

public ContextPartitionIdentifierHash()
Ctor.


ContextPartitionIdentifierHash

public ContextPartitionIdentifierHash(int hash)
Ctor.

Parameters:
hash - code
Method Detail

getHash

public int getHash()
Returns the hash code.

Returns:
hash code

setHash

public void setHash(int hash)
Sets the hash code.

Parameters:
hash - hash code

compareTo

public boolean compareTo(ContextPartitionIdentifier other)
Description copied from class: ContextPartitionIdentifier
Compare identifiers returning a boolean indicator whether identifier information matches.

Specified by:
compareTo in class ContextPartitionIdentifier
Parameters:
other - to compare to
Returns:
true for objects identifying the same context partition (could be different context)

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

© 2006-2015 EsperTech Inc.
All rights reserved.
Visit us at espertech.com