org.abstracthorizon.danube.http.util
Class Ranges.Range

java.lang.Object
  extended by org.abstracthorizon.danube.http.util.Ranges.Range
Enclosing class:
Ranges

public static class Ranges.Range
extends Object

Single range definition

Author:
Daniel Sendula

Constructor Summary
Ranges.Range(long from, long to)
          Constructor
 
Method Summary
 long getFrom()
          Returns from pointer
 long getSize()
          Returns size of the range
 long getTo()
          Returns to pointer
 boolean isPrefix()
          Is this range a prefix range
 boolean isSuffix()
          Is this range a suffix range
 String toString()
          Returns string representation of this range
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Ranges.Range

public Ranges.Range(long from,
                    long to)
Constructor

Parameters:
from - from
to - to
Method Detail

getFrom

public long getFrom()
Returns from pointer

Returns:
from pointer

getTo

public long getTo()
Returns to pointer

Returns:
to pointer

getSize

public long getSize()
Returns size of the range

Returns:
size of the range

isSuffix

public boolean isSuffix()
Is this range a suffix range

Returns:
is this range a suffix range

isPrefix

public boolean isPrefix()
Is this range a prefix range

Returns:
is this range a prefix range

toString

public String toString()
Returns string representation of this range

Overrides:
toString in class Object
Returns:
string representation


Copyright © 2005-2009 Abstract Horizon. All Rights Reserved.