public abstract static class DynamicFactory.ConstructorKey extends Object implements Comparable<DynamicFactory.ConstructorKey>
Constructor and Description |
---|
ConstructorKey() |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(DynamicFactory.ConstructorKey o)
Orders constructor keys by the number of parameters and then this
name.
|
boolean |
equals(Object o) |
int |
hashCode() |
abstract Class<?> |
intf()
Access the interface this key indexes.
|
boolean |
isAssignable(DynamicFactory.ConstructorKey candidate)
Checks whether this key is assignable to the candidate.
|
boolean |
isUniform()
Indicates whether this key has multiple parameters and they are of
uniform type.
|
abstract int |
n()
Access the number of parameters in the constructor.
|
String |
toString() |
abstract Class<?> |
type(int i)
Access the type of class at the given parameter index.
|
public abstract Class<?> intf()
public abstract Class<?> type(int i)
i
- index of the parameterpublic abstract int n()
public boolean isUniform()
new Object[]{ Atom, Bond, Atom }
// false
new Object[]{ Atom, Atom, Atom }
// truepublic int compareTo(DynamicFactory.ConstructorKey o)
compareTo
in interface Comparable<DynamicFactory.ConstructorKey>
o
- another constructor keypublic boolean isAssignable(DynamicFactory.ConstructorKey candidate)
candidate
- another constructor keyCopyright © 2021. All rights reserved.