Package org.jboss.resteasy.util

## Class WeightedLanguage

- java.lang.Object
- - org.jboss.resteasy.util.WeightedLanguage

- All Implemented Interfaces:
    `Comparable<WeightedLanguage>`

      public class WeightedLanguage
      extends Object
      implements Comparable<WeightedLanguage>

  Version:
    $Revision: 1 $
  Author:
    Bill Burke

- - ### Constructor Summary

    Constructors
    Constructor | Description
    --- | ---
    `WeightedLanguage​(Locale locale, float weight)` |

  - ### Method Summary

    All Methods Static Methods Instance Methods Concrete Methods
    Modifier and Type | Method | Description
    --- | --- | ---
    `int` | `compareTo​(WeightedLanguage o)` |
    `boolean` | `equals​(Object obj)` |
    `Locale` | `getLocale()` |
    `float` | `getWeight()` |
    `int` | `hashCode()` |
    `static WeightedLanguage` | `parse​(String lang)` |
    `String` | `toString()` |

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

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

- - ### Constructor Detail

    - #### WeightedLanguage

          public WeightedLanguage​(Locale locale,
                                  float weight)

  - ### Method Detail

    - #### getWeight

          public float getWeight()

    - #### getLocale

          public Locale getLocale()

    - #### compareTo

          public int compareTo​(WeightedLanguage o)

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

    - #### toString

          public String toString()

      Overrides:
        `toString` in class `Object`

    - #### parse

          public static WeightedLanguage parse​(String lang)

    - #### equals

          public boolean equals​(Object obj)

      Overrides:
        `equals` in class `Object`

    - #### hashCode

          public int hashCode()

      Overrides:
        `hashCode` in class `Object`