com.nimbusds.openid.connect.sdk.claims
Class LangTaggedObject<T>

java.lang.Object
  extended by com.nimbusds.openid.connect.sdk.claims.LangTaggedObject<T>

public class LangTaggedObject<T>
extends Object

Object with an optional language tag (RFC 5646).

Related specifications:

Version:
$version$ (2013-01-22)
Author:
Vladimir Dzhuvinov

Constructor Summary
LangTaggedObject(T object)
          Creates a new language-tagged object with no tag.
LangTaggedObject(T object, com.nimbusds.langtag.LangTag langTag)
          Creates a new language-tagged object.
 
Method Summary
 boolean equals(Object other)
          Overrides java.lang.Object.equals().
 com.nimbusds.langtag.LangTag getLangTag()
          Gets the language tag.
 T getObject()
          Gets the language-tagged object.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LangTaggedObject

public LangTaggedObject(T object)
Creates a new language-tagged object with no tag.

Parameters:
object - The object. Must not be null.

LangTaggedObject

public LangTaggedObject(T object,
                        com.nimbusds.langtag.LangTag langTag)
Creates a new language-tagged object.

Parameters:
object - The object to language-tag. Must not be null.
langTag - The language tag, null if not specified.
Method Detail

getObject

public T getObject()
Gets the language-tagged object.

Returns:
The object.

getLangTag

public com.nimbusds.langtag.LangTag getLangTag()
Gets the language tag.

Returns:
The language tag, null if not specified.

equals

public boolean equals(Object other)
Overrides java.lang.Object.equals().

Overrides:
equals in class Object
Returns:
Returns true if the other object is also a language tagged object with the same value (object) and language tag.


Copyright © 2013 NimbusDS. All Rights Reserved.