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 and Description
    `WeightedLanguage(Locale locale, float weight)`

  - ### Method Summary

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

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

      `clone, finalize, getClass, hashCode, 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`

Copyright © 2014. All Rights Reserved.