ozone core API

org.ozoneDB.core
Class MethodKey

java.lang.Object
  extended byorg.ozoneDB.core.MethodKey
All Implemented Interfaces:
java.lang.Comparable

public final class MethodKey
extends java.lang.Object
implements java.lang.Comparable

Objects of this class are the keys in the method cache table of the AbstractObjectContainer. This class implements the way we map from class+methodName+sig to the actual method. This is very important for the overall peformance of ozone. Besides this class is used to sort method arrays.

Version:
$Revision: 1.5 $Date: 2003/11/01 18:34:36 $
Author:
SMB

Field Summary
protected  java.lang.String className
           
protected  java.lang.reflect.Method method
           
protected  java.lang.String methodName
           
protected  java.lang.String sig
           
 
Constructor Summary
MethodKey(java.lang.String _className, java.lang.String _methodName, java.lang.String _sig)
           
MethodKey(java.lang.String _className, java.lang.String _methodName, java.lang.String _sig, java.lang.reflect.Method _method)
           
 
Method Summary
 int compareTo(java.lang.Object o)
           
 boolean equals(java.lang.Object obj)
           
 int hashCode()
           
 java.lang.reflect.Method method()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

methodName

protected java.lang.String methodName

sig

protected java.lang.String sig

className

protected java.lang.String className

method

protected java.lang.reflect.Method method
Constructor Detail

MethodKey

public MethodKey(java.lang.String _className,
                 java.lang.String _methodName,
                 java.lang.String _sig)

MethodKey

public MethodKey(java.lang.String _className,
                 java.lang.String _methodName,
                 java.lang.String _sig,
                 java.lang.reflect.Method _method)
Method Detail

method

public java.lang.reflect.Method method()

hashCode

public int hashCode()

equals

public boolean equals(java.lang.Object obj)

toString

public java.lang.String toString()

compareTo

public int compareTo(java.lang.Object o)
Specified by:
compareTo in interface java.lang.Comparable

ozone core API

Copyright (C) The Ozone Database Project - www.ozone-db.org. All rights reserved.