Package com.e1c.langtool.history.db
Class GroupedTranslation
java.lang.Object
com.e1c.langtool.history.db.GroupedTranslation
- All Implemented Interfaces:
IProjectTranslationStorage.IGroupedTranslation
public final class GroupedTranslation
extends Object
implements IProjectTranslationStorage.IGroupedTranslation
The immutable and thread-safe implementation of
IProjectTranslationStorage.IGroupedTranslation.-
Constructor Summary
ConstructorsConstructorDescriptionGroupedTranslation(String translatedValue, long count) Creates a new grouped translation specified by translated value and number of translations. -
Method Summary
-
Constructor Details
-
GroupedTranslation
Creates a new grouped translation specified by translated value and number of translations.- Parameters:
translatedValue- the translated valuecount- the number of translations- Throws:
IllegalArgumentException- if the translated value isnullor count < 1
-
-
Method Details
-
getCount
public long getCount()Description copied from interface:IProjectTranslationStorage.IGroupedTranslationReturns the number of translations have been found by query with grouping by translated value.- Specified by:
getCountin interfaceIProjectTranslationStorage.IGroupedTranslation- Returns:
- the number of translations (must be > 0)
-
getValue
Description copied from interface:IProjectTranslationStorage.IGroupedTranslationReturns the translated value.- Specified by:
getValuein interfaceIProjectTranslationStorage.IGroupedTranslation- Returns:
- the translated value. It can't be
null.
-
hashCode
public int hashCode() -
equals
-
toString
-