org.lastbamboo.common.download
Class RateSegmentImpl

java.lang.Object
  extended by org.lastbamboo.common.download.RateSegmentImpl
All Implemented Interfaces:
RateSegment

public final class RateSegmentImpl
extends Object
implements RateSegment

An implementation of the rate segment interface.


Constructor Summary
RateSegmentImpl(long start, long duration, long size)
          Constructs a new segment.
 
Method Summary
 long getDuration()
          Returns the duration.
 long getSize()
          Returns the size.
 long getStart()
          Returns the start time.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RateSegmentImpl

public RateSegmentImpl(long start,
                       long duration,
                       long size)
Constructs a new segment.

Parameters:
start - The start time of this segment.
duration - The duraction of this segment.
size - The size of this segment.
Method Detail

getDuration

public long getDuration()
Returns the duration.

Specified by:
getDuration in interface RateSegment
Returns:
The duration.

getSize

public long getSize()
Returns the size.

Specified by:
getSize in interface RateSegment
Returns:
The size.

getStart

public long getStart()
Returns the start time.

Specified by:
getStart in interface RateSegment
Returns:
The start time.


Copyright © 2013 LittleShoot. All Rights Reserved.