org.apache.jmeter.protocol.http.parser

## Class URLString

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

- All Implemented Interfaces:
    Comparable<URLString>

      public class URLString
      extends Object
      implements 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(URL u)`

  - ### Method Summary

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

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

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

- - ### Constructor Detail

    - #### URLString

          public URLString(URL u)

  - ### Method Detail

    - #### toString

          public String toString()

      Overrides:
        `toString` in class `Object`

    - #### getURL

          public URL getURL()

    - #### compareTo

          public int compareTo(URLString o)

      Specified by:
        `compareTo` in interface `Comparable<URLString>`

    - #### equals

          public boolean equals(Object o)

      Overrides:
        `equals` in class `Object`

    - #### hashCode

          public int hashCode()

      Overrides:
        `hashCode` in class `Object`

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