Class ConcurrentTool.ConsumeObject

java.lang.Object
java.lang.ref.Reference<Object>
java.lang.ref.WeakReference<Object>
com.nomagic.magicreport.engine.ConcurrentTool.ConsumeObject
Enclosing class:
ConcurrentTool

@OpenApiAll public static class ConcurrentTool.ConsumeObject extends WeakReference<Object>
Inner class which acts as the reference for a file pending deletion.
  • Constructor Details

    • ConsumeObject

      protected ConsumeObject(Object obj)
      Create consumed object.
      Parameters:
      obj - object the new weak reference will refer to
    • ConsumeObject

      public ConsumeObject(Object[][] parameters)
      Create consumed object. The parameters format is [position of parameter][name,value].
      Example:
      
          ConsumeObject consumeObject = new ConsumeObject(new Object[][]{{"param1","value1"},{"param2","value2"});
       
      Parameters:
      parameters - two dimensions parameter for consumed object
  • Method Details

    • getValue

      public Object getValue(Object parameterName)
      Return value of given parameter name.
      Parameters:
      parameterName - parameter name
      Returns:
      parameter value
    • hashCode

      public int hashCode()
      Returns a hash code value for the object. This method is supported for the benefit of hashtables such as those provided by
      Overrides:
      hashCode in class Object
      Returns:
      a hash code value for this object.
    • equals

      public boolean equals(Object obj)
      Indicates whether some other object is "equal to" this one.
      Overrides:
      equals in class Object
      Parameters:
      obj - the reference object with which to compare.
      Returns:
      true if this object is the same as the obj argument; false otherwise.