DefaultServlet.Range (Apache Tomcat 9.0.120 API Documentation)
Description: declaration: package: org.apache.catalina.servlets, class: DefaultServlet, class: Range

# Class DefaultServlet.Range

java.lang.Object
org.apache.catalina.servlets.DefaultServlet.Range

All Implemented Interfaces:
  `Comparable<DefaultServlet.Range>`

Enclosing class:
  `DefaultServlet`

protected static class DefaultServlet.Range extends Object implements Comparable<DefaultServlet.Range>

- ## Field Summary

  Fields
  Modifier and Type
  Field
  Description
  `long`
  `end`
  `long`
  `length`
  `long`
  `start`

- ## Constructor Summary

  Constructors
  Modifier
  Constructor
  Description
  `protected`
  `Range()`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `int`
  `compareTo(DefaultServlet.Range o)`
  `boolean`
  `equals(Object obj)`
  `int`
  `hashCode()`
  `boolean`
  `validate()`
  Validate range.

  ### Methods inherited from class Object

  `clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait`

- ## Field Details

  - ### start

    public long start

  - ### end

    public long end

  - ### length

    public long length

- ## Constructor Details

  - ### Range

    protected Range()

- ## Method Details

  - ### validate

    public boolean validate()
    Validate range.
    Returns:
      true if the range is valid, otherwise false

  - ### compareTo

    public int compareTo(DefaultServlet.Range o)
    Specified by:
      `compareTo` in interface `Comparable<DefaultServlet.Range>`

  - ### hashCode

    public int hashCode()
    Overrides:
      `hashCode` in class `Object`

  - ### equals

    public boolean equals(Object obj)
    Overrides:
      `equals` in class `Object`