Class LongValueExtractor

java.lang.Object
microsim.reflection.AbstractValueExtractor
microsim.reflection.LongValueExtractor

public class LongValueExtractor extends AbstractValueExtractor
Employs Java reflection to call objects' methods which return long values.
  • Constructor Details

  • Method Details

    • getLong

      public long getLong(@NonNull @NonNull Object target)
      Invoke the method of the target object and return its long result.
      Parameters:
      target - Object to be invoked.
      Returns:
      The requested long value.
    • getLong

      public long getLong()
      Invoke the method of the object passed to constructor and return its long result.
      Returns:
      The requested long value.
    • getLongValue

      public long getLongValue(int ignoredValueID)
      This is an implementation of the LongSource interface. It calls the getLong() method.
      Parameters:
      ignoredValueID - This parameter is ignored. It is put for compatibility with the LongSource interface.
      Returns:
      The requested long value.
    • getCollectionValue

      public long @NonNull [] getCollectionValue(@NonNull @NonNull Collection<?> c)