</BUG>
long requests = full ? responseTimes.length : pos;
if (clazz == DefaultOutcome.class) {
return (T) new DefaultOutcome(requests, errors, getMeanDuration(), getMaxDuration());
} else if (clazz == OperationThroughput.class) {
<BUG>return (T) OperationThroughput.compute(requests, errors, args);
</BUG>
} else if (clazz == Percentile.class) {
double percentile = Percentile.getPercentile(args);
int size = full ? responseTimes.length : pos;

copy.pos = pos;
return copy;
}
@SuppressWarnings("unchecked")
@Override
public <T> T getRepresentation(Class<T> clazz, Statistics ownerStatistics, Object... args) {
long requests = full ? responseTimes.length : pos;
if (clazz == DefaultOutcome.class) {
return (T) new DefaultOutcome(requests, errors, getMeanDuration(), getMaxDuration());
} else if (clazz == OperationThroughput.class) {
return (T) OperationThroughput.compute(requests, errors, ownerStatistics);
} else if (clazz == Percentile.class) {
double percentile = Percentile.getPercentile(args);
int size = full ? responseTimes.length : pos;
