@OpenApiAll
public static class ConcurrentTool.ConsumeObject
extends java.lang.ref.WeakReference<java.lang.Object>
Modifier | Constructor and Description |
---|---|
protected |
ConsumeObject(java.lang.Object obj)
Create consumed object.
|
|
ConsumeObject(java.lang.Object[][] parameters)
Create consumed object.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj)
Indicates whether some other object is "equal to" this one.
|
java.lang.Object |
getValue(java.lang.Object parameterName)
Return value of given parameter name.
|
int |
hashCode()
Returns a hash code value for the object.
|
protected ConsumeObject(java.lang.Object obj)
obj
- object the new weak reference will refer topublic ConsumeObject(java.lang.Object[][] parameters)
ConsumeObject consumeObject = new ConsumeObject(new Object[][]{{"param1","value1"},{"param2","value2"});
parameters
- two dimensions parameter for consumed objectpublic java.lang.Object getValue(java.lang.Object parameterName)
parameterName
- parameter namepublic int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
obj
- the reference object with which to compare.true
if this object is the same as the obj argument; false
otherwise.Copyright © 2010 - No Magic Asia