org.apache.jmeter.protocol.http.parser

## Class URLString

- java.lang.Object
- - org.apache.jmeter.protocol.http.parser.URLString

- All Implemented Interfaces:
    java.lang.Comparable<URLString>

      public class URLString
      extends java.lang.Object
      implements java.lang.Comparable<URLString>

  Helper class to allow URLs to be stored in Collections without incurring the cost of the hostname lookup performed by the URL methods equals() and hashCode() URL is a final class, so cannot be extended ...

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `URLString(java.net.URL u)`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `int` | `compareTo(URLString o)`
    `boolean` | `equals(java.lang.Object o)`
    `java.net.URL` | `getURL()`
    `int` | `hashCode()`
    `java.lang.String` | `toString()`

    - ### Methods inherited from class java.lang.Object

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

- - ### Constructor Detail

    - #### URLString

          public URLString(java.net.URL u)

  - ### Method Detail

    - #### toString

          public java.lang.String toString()

      Overrides:
        `toString` in class `java.lang.Object`

    - #### getURL

          public java.net.URL getURL()

    - #### compareTo

          public int compareTo(URLString o)

      Specified by:
        `compareTo` in interface `java.lang.Comparable<URLString>`

    - #### equals

          public boolean equals(java.lang.Object o)

      Overrides:
        `equals` in class `java.lang.Object`

    - #### hashCode

          public int hashCode()

      Overrides:
        `hashCode` in class `java.lang.Object`

Copyright © 1998-2018 Apache Software Foundation. All Rights Reserved.