| com.flexive.shared.value.FxNumber
FxNumber | public class FxNumber extends FxValue implements Serializable(Code) | | A multilingual Number, internally represented as Integer
author: Markus Plesser (markus.plesser@flexive.com), UCS - unique computing solutions gmbh (http://www.ucs.at) |
Constructor Summary | |
public | FxNumber(boolean multiLanguage, long defaultLanguage, Map<Long, Integer> translations) | public | FxNumber(long defaultLanguage, Map<Long, Integer> translations) | public | FxNumber(boolean multiLanguage, Map<Long, Integer> translations) | public | FxNumber(Map<Long, Integer> translations) | public | FxNumber(Map<Long, Integer[]> translations, int pos) | public | FxNumber(boolean multiLanguage, long defaultLanguage, Integer value) | public | FxNumber(long defaultLanguage, Integer value) | public | FxNumber(boolean multiLanguage, Integer value) | public | FxNumber(Integer value) | public | FxNumber(FxValue<Integer, FxNumber> clone) |
FxNumber | public FxNumber(boolean multiLanguage, long defaultLanguage, Map<Long, Integer> translations)(Code) | | Constructor
Parameters: multiLanguage - multilanguage value? Parameters: defaultLanguage - the default language Parameters: translations - HashMap containing language->translation mapping |
FxNumber | public FxNumber(long defaultLanguage, Map<Long, Integer> translations)(Code) | | Constructor
Parameters: defaultLanguage - the default language Parameters: translations - HashMap containing language->translation mapping |
FxNumber | public FxNumber(boolean multiLanguage, Map<Long, Integer> translations)(Code) | | Constructor
Parameters: multiLanguage - multilanguage value? Parameters: translations - HashMap containing language->translation mapping |
FxNumber | public FxNumber(Map<Long, Integer> translations)(Code) | | Constructor
Parameters: translations - HashMap containing language->translation mapping |
FxNumber | public FxNumber(Map<Long, Integer[]> translations, int pos)(Code) | | Constructor - create value from an array of translations
Parameters: translations - HashMap containing language->translation mapping Parameters: pos - position (index) in the array to use |
FxNumber | public FxNumber(boolean multiLanguage, long defaultLanguage, Integer value)(Code) | | Constructor
Parameters: multiLanguage - multilanguage value? Parameters: defaultLanguage - the default language Parameters: value - single initializing value |
FxNumber | public FxNumber(long defaultLanguage, Integer value)(Code) | | Constructor
Parameters: defaultLanguage - the default language Parameters: value - single initializing value |
FxNumber | public FxNumber(boolean multiLanguage, Integer value)(Code) | | Constructor
Parameters: multiLanguage - multilanguage value? Parameters: value - single initializing value |
FxNumber | public FxNumber(Integer value)(Code) | | Constructor
Parameters: value - single initializing value |
copy | public FxNumber copy()(Code) | | Creates a copy of the given object (useful if the actual type is unknown).
a copy of the given object (useful if the actual type is unknown). |
fromString | public Integer fromString(String value)(Code) | | Evaluates the given string value to an object of type T.
Parameters: value - string value to be evaluated the value interpreted as T |
isImmutableValueType | public boolean isImmutableValueType()(Code) | | Return true if T is immutable (e.g. java.lang.String). This prevents cloning
of the translations in copy constructors.
true if T is immutable (e.g. java.lang.String) |
|
|