APIdia Launch Partner
Top Description Fields Constructors Methods
com.sun.beans.finder

pack-priv final Class Signature

extends Object
Class Inheritance

This class is designed to be a key of a cache of constructors or methods.
Author
Sergey A. Malenkov
Since
1.7

Field Summary

Modifier and TypeField and Description
private final Class<?>[]
private volatile int
private final String
private final Class<?>

Constructor Summary

AccessConstructor and Description
pack-priv
Signature(Class<?>
the class that contains constructor
type
,
Class<?>[]
the types of constructor's parameters
args
)

Constructs signature for constructor.

pack-priv
Signature(Class<?>
the class that contains method
type
,
String
the name of the method
name
,
Class<?>[]
the types of method's parameters
args
)

Constructs signature for method.

Method Summary

Modifier and TypeMethod and Description
private static int

Returns:

updated hash code value
addHashCode
(int
current hash code value
code
,
Object
object that updates hash code value
object
)

Adds hash code value if specified object.

public boolean

Returns:

true if this object is the same as the object argument, false otherwise
equals
(Object
the reference object with which to compare
object
)

Overrides java.lang.Object.equals.

Indicates whether some other object is "equal to" this one.

pack-priv Class<?>[]
pack-priv String
pack-priv Class<?>
public int

Returns:

a hash code value for this object
hashCode
()

Overrides java.lang.Object.hashCode.

Returns a hash code value for the object.

private static boolean

Returns:

true if first object is the same as the second object, false otherwise
isEqual
(Object
the first reference object that will compared
obj1
,
Object
the second reference object that will compared
obj2
)

Indicates whether some object is "equal to" another one.

private static boolean

Returns:

true if first array is the same as the second array, false otherwise
isEqual
(Class<?>[]
the first reference array that will compared
args1
,
Class<?>[]
the second reference array that will compared
args2
)

Indicates whether some array is "equal to" another one.

Inherited from java.lang.Object:
clonefinalizegetClassnotifynotifyAlltoStringwaitwaitwait

Field Detail

argsback to summary
private final Class<?>[] args
codeback to summary
private volatile int code
nameback to summary
private final String name
typeback to summary
private final Class<?> type

Constructor Detail

Signatureback to summary
pack-priv Signature(Class<?> type, Class<?>[] args)

Constructs signature for constructor.

Parameters
type:Class<?>

the class that contains constructor

args:Class<?>[]

the types of constructor's parameters

Signatureback to summary
pack-priv Signature(Class<?> type, String name, Class<?>[] args)

Constructs signature for method.

Parameters
type:Class<?>

the class that contains method

name:String

the name of the method

args:Class<?>[]

the types of method's parameters

Method Detail

addHashCodeback to summary
private static int addHashCode(int code, Object object)

Adds hash code value if specified object. This is a part of the algorithm suggested in Effective Java, Item 8.

Parameters
code:int

current hash code value

object:Object

object that updates hash code value

Returns:int

updated hash code value

See Also
hashCode()
equalsback to summary
public boolean equals(Object object)

Overrides java.lang.Object.equals.

Indicates whether some other object is "equal to" this one.

Parameters
object:Object

the reference object with which to compare

Returns:boolean

true if this object is the same as the object argument, false otherwise

Annotations
@Override
See Also
hashCode()
getArgsback to summary
pack-priv Class<?>[] getArgs()
getNameback to summary
pack-priv String getName()
getTypeback to summary
pack-priv Class<?> getType()
hashCodeback to summary
public int hashCode()

Overrides java.lang.Object.hashCode.

Returns a hash code value for the object. This method is supported for the benefit of hashtables such as java.util.HashMap or java.util.HashSet. Hash code computed using algorithm suggested in Effective Java, Item 8.

Returns:int

a hash code value for this object

Annotations
@Override
See Also
equals(Object)
isEqualback to summary
private static boolean isEqual(Object obj1, Object obj2)

Indicates whether some object is "equal to" another one. This method supports null values.

Parameters
obj1:Object

the first reference object that will compared

obj2:Object

the second reference object that will compared

Returns:boolean

true if first object is the same as the second object, false otherwise

isEqualback to summary
private static boolean isEqual(Class<?>[] args1, Class<?>[] args2)

Indicates whether some array is "equal to" another one. This method supports null values.

Parameters
args1:Class<?>[]

the first reference array that will compared

args2:Class<?>[]

the second reference array that will compared

Returns:boolean

true if first array is the same as the second array, false otherwise