org.fuin.objects4j
Class LabelClassInfo
java.lang.Object
org.fuin.objects4j.LabelInfo
org.fuin.objects4j.LabelClassInfo
@Immutable
public class LabelClassInfo
- extends LabelInfo
Label information for a class.
|
Constructor Summary |
LabelClassInfo(java.lang.Class<?> clasz,
java.lang.String text,
java.lang.String shortText)
Constructor with class, text and abbreviation. |
|
Method Summary |
static LabelClassInfo |
create(java.lang.Class<?> clasz,
java.util.Locale locale)
Returns the label information for a given class. |
boolean |
equals(java.lang.Object obj)
|
java.lang.Class<?> |
getClasz()
Returns the class the label is for. |
int |
hashCode()
|
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
LabelClassInfo
@Requires(value="clasz != null")
public LabelClassInfo(java.lang.Class<?> clasz,
java.lang.String text,
java.lang.String shortText)
- Constructor with class, text and abbreviation.
- Parameters:
clasz - Class the label is for.text - Text.shortText - Abbreviation of the text.
getClasz
public final java.lang.Class<?> getClasz()
- Returns the class the label is for.
- Returns:
- Class.
hashCode
public final int hashCode()
- Overrides:
hashCode in class java.lang.Object
equals
public final boolean equals(java.lang.Object obj)
- Overrides:
equals in class java.lang.Object
create
@Requires(value="(clasz != null) && (locale != null)")
public static LabelClassInfo create(java.lang.Class<?> clasz,
java.util.Locale locale)
- Returns the label information for a given class.
- Parameters:
clasz - Class.locale - Locale to use.
- Returns:
- Label information or
null.
Copyright © 2010 Future Invent Informationsmanagement GmbH. All Rights Reserved.