com.sun.sgs.impl.util
Class AbstractService.Version

java.lang.Object
  extended by com.sun.sgs.impl.util.AbstractService.Version
All Implemented Interfaces:
ManagedObject, Serializable
Enclosing class:
AbstractService

public static class AbstractService.Version
extends Object
implements ManagedObject, Serializable

An immutable class to hold the current version of the keys and data persisted by a service.

See Also:
Serialized Form

Constructor Summary
AbstractService.Version(int major, int minor)
          Constructs an instance with the specified major and minor version numbers.
 
Method Summary
 boolean equals(Object obj)
          
 int getMajorVersion()
          Returns the major version number.
 int getMinorVersion()
          Returns the minor version number.
 int hashCode()
          
 String toString()
          
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AbstractService.Version

public AbstractService.Version(int major,
                               int minor)
Constructs an instance with the specified major and minor version numbers.

Parameters:
major - a major version number
minor - a minor version number
Method Detail

getMajorVersion

public int getMajorVersion()
Returns the major version number.

Returns:
the major version number

getMinorVersion

public int getMinorVersion()
Returns the minor version number.

Returns:
the minor version number

toString

public String toString()

Overrides:
toString in class Object

equals

public boolean equals(Object obj)

Overrides:
equals in class Object

hashCode

public int hashCode()

Overrides:
hashCode in class Object

RedDwarf, Version 0.10.1
2010-03-14 10:56:12

Copyright © 2010 The RedDwarf Authors. All rights reserved
Copyright © 2007-2010 Sun Microsystems, Inc. All rights reserved