com.jakewharton.pingdom.entities
Class SummaryAverage.ResponseTime.AvgResponseWrapper

java.lang.Object
  extended by com.jakewharton.pingdom.entities.SummaryAverage.ResponseTime.AvgResponseWrapper
Enclosing class:
SummaryAverage.ResponseTime

public static final class SummaryAverage.ResponseTime.AvgResponseWrapper
extends Object

Wrapper for the average response field of a SummaryAverage.ResponseTime providing either a single integer value or a list of probe-specific response times.

Author:
Jake Wharton

Constructor Summary
SummaryAverage.ResponseTime.AvgResponseWrapper(int avgResponse)
           
SummaryAverage.ResponseTime.AvgResponseWrapper(List<SummaryAverage.ResponseTime.ProbeResponseTime> avgResponses)
           
 
Method Summary
 List<SummaryAverage.ResponseTime.ProbeResponseTime> getList()
          Get as list of values.
 Integer getSingle()
          Get as single value.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SummaryAverage.ResponseTime.AvgResponseWrapper

public SummaryAverage.ResponseTime.AvgResponseWrapper(int avgResponse)

SummaryAverage.ResponseTime.AvgResponseWrapper

public SummaryAverage.ResponseTime.AvgResponseWrapper(List<SummaryAverage.ResponseTime.ProbeResponseTime> avgResponses)
Method Detail

getSingle

public Integer getSingle()
Get as single value.

Returns:
Value.

getList

public List<SummaryAverage.ResponseTime.ProbeResponseTime> getList()
Get as list of values.

Returns:
List of values.


Copyright © 2011 Jake Wharton. All Rights Reserved.