Package fr.ird.observe.dto.referential
Class I18nReferentialHelper
- java.lang.Object
-
- fr.ird.observe.dto.referential.I18nReferentialHelper
-
public class I18nReferentialHelper extends Object
-
-
Field Summary
Fields Modifier and Type Field Description static Function<I18nReferentialDto,String>LABEL1_FUNCTIONstatic Function<I18nReferentialDto,String>LABEL2_FUNCTIONstatic Function<I18nReferentialDto,String>LABEL3_FUNCTIONstatic Function<I18nReferentialDto,String>LABEL4_FUNCTIONstatic Function<I18nReferentialDto,String>LABEL5_FUNCTIONstatic Function<I18nReferentialDto,String>LABEL6_FUNCTIONstatic Function<I18nReferentialDto,String>LABEL7_FUNCTIONstatic Function<I18nReferentialDto,String>LABEL8_FUNCTION
-
Constructor Summary
Constructors Constructor Description I18nReferentialHelper()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static <BeanType extends I18nReferentialDto>
voidcopyI18nReferentialDto(BeanType source, BeanType target)static <BeanType extends I18nReferentialDto>
voidcopyI18nReferentialDto(BeanType source, BeanType target, org.nuiton.util.beans.Binder<BeanType,BeanType> binder)static <E extends I18nReferentialDto>
Stringdecorate(int referenceLocaleOrdinal, E i18nDto)static <BeanType extends I18nReferentialDto>
List<BeanType>filterByLabel1(Collection<BeanType> $source, String label1)static <BeanType extends I18nReferentialDto>
List<BeanType>filterByLabel2(Collection<BeanType> $source, String label2)static <BeanType extends I18nReferentialDto>
List<BeanType>filterByLabel3(Collection<BeanType> $source, String label3)static <BeanType extends I18nReferentialDto>
List<BeanType>filterByLabel4(Collection<BeanType> $source, String label4)static <BeanType extends I18nReferentialDto>
List<BeanType>filterByLabel5(Collection<BeanType> $source, String label5)static <BeanType extends I18nReferentialDto>
List<BeanType>filterByLabel6(Collection<BeanType> $source, String label6)static <BeanType extends I18nReferentialDto>
List<BeanType>filterByLabel7(Collection<BeanType> $source, String label7)static <BeanType extends I18nReferentialDto>
List<BeanType>filterByLabel8(Collection<BeanType> $source, String label8)static <BeanType extends I18nReferentialDto>
Predicate<BeanType>newLabel1Predicate(String label1)static <BeanType extends I18nReferentialDto>
Predicate<BeanType>newLabel2Predicate(String label2)static <BeanType extends I18nReferentialDto>
Predicate<BeanType>newLabel3Predicate(String label3)static <BeanType extends I18nReferentialDto>
Predicate<BeanType>newLabel4Predicate(String label4)static <BeanType extends I18nReferentialDto>
Predicate<BeanType>newLabel5Predicate(String label5)static <BeanType extends I18nReferentialDto>
Predicate<BeanType>newLabel6Predicate(String label6)static <BeanType extends I18nReferentialDto>
Predicate<BeanType>newLabel7Predicate(String label7)static <BeanType extends I18nReferentialDto>
Predicate<BeanType>newLabel8Predicate(String label8)static <BeanType extends I18nReferentialDto>
Class<BeanType>typeOfI18nReferentialDto()static <BeanType extends I18nReferentialDto>
com.google.common.collect.ImmutableMap<String,BeanType>uniqueIndexByLabel1(Iterable<BeanType> $source)static <BeanType extends I18nReferentialDto>
com.google.common.collect.ImmutableMap<String,BeanType>uniqueIndexByLabel2(Iterable<BeanType> $source)static <BeanType extends I18nReferentialDto>
com.google.common.collect.ImmutableMap<String,BeanType>uniqueIndexByLabel3(Iterable<BeanType> $source)static <BeanType extends I18nReferentialDto>
com.google.common.collect.ImmutableMap<String,BeanType>uniqueIndexByLabel4(Iterable<BeanType> $source)static <BeanType extends I18nReferentialDto>
com.google.common.collect.ImmutableMap<String,BeanType>uniqueIndexByLabel5(Iterable<BeanType> $source)static <BeanType extends I18nReferentialDto>
com.google.common.collect.ImmutableMap<String,BeanType>uniqueIndexByLabel6(Iterable<BeanType> $source)static <BeanType extends I18nReferentialDto>
com.google.common.collect.ImmutableMap<String,BeanType>uniqueIndexByLabel7(Iterable<BeanType> $source)static <BeanType extends I18nReferentialDto>
com.google.common.collect.ImmutableMap<String,BeanType>uniqueIndexByLabel8(Iterable<BeanType> $source)
-
-
-
Field Detail
-
LABEL1_FUNCTION
public static final Function<I18nReferentialDto,String> LABEL1_FUNCTION
-
LABEL2_FUNCTION
public static final Function<I18nReferentialDto,String> LABEL2_FUNCTION
-
LABEL3_FUNCTION
public static final Function<I18nReferentialDto,String> LABEL3_FUNCTION
-
LABEL4_FUNCTION
public static final Function<I18nReferentialDto,String> LABEL4_FUNCTION
-
LABEL5_FUNCTION
public static final Function<I18nReferentialDto,String> LABEL5_FUNCTION
-
LABEL6_FUNCTION
public static final Function<I18nReferentialDto,String> LABEL6_FUNCTION
-
LABEL7_FUNCTION
public static final Function<I18nReferentialDto,String> LABEL7_FUNCTION
-
LABEL8_FUNCTION
public static final Function<I18nReferentialDto,String> LABEL8_FUNCTION
-
-
Method Detail
-
decorate
public static <E extends I18nReferentialDto> String decorate(int referenceLocaleOrdinal, E i18nDto)
-
typeOfI18nReferentialDto
public static <BeanType extends I18nReferentialDto> Class<BeanType> typeOfI18nReferentialDto()
-
copyI18nReferentialDto
public static <BeanType extends I18nReferentialDto> void copyI18nReferentialDto(BeanType source, BeanType target)
-
copyI18nReferentialDto
public static <BeanType extends I18nReferentialDto> void copyI18nReferentialDto(BeanType source, BeanType target, org.nuiton.util.beans.Binder<BeanType,BeanType> binder)
-
newLabel1Predicate
public static <BeanType extends I18nReferentialDto> Predicate<BeanType> newLabel1Predicate(String label1)
-
filterByLabel1
public static <BeanType extends I18nReferentialDto> List<BeanType> filterByLabel1(Collection<BeanType> $source, String label1)
-
newLabel2Predicate
public static <BeanType extends I18nReferentialDto> Predicate<BeanType> newLabel2Predicate(String label2)
-
filterByLabel2
public static <BeanType extends I18nReferentialDto> List<BeanType> filterByLabel2(Collection<BeanType> $source, String label2)
-
newLabel3Predicate
public static <BeanType extends I18nReferentialDto> Predicate<BeanType> newLabel3Predicate(String label3)
-
filterByLabel3
public static <BeanType extends I18nReferentialDto> List<BeanType> filterByLabel3(Collection<BeanType> $source, String label3)
-
newLabel4Predicate
public static <BeanType extends I18nReferentialDto> Predicate<BeanType> newLabel4Predicate(String label4)
-
filterByLabel4
public static <BeanType extends I18nReferentialDto> List<BeanType> filterByLabel4(Collection<BeanType> $source, String label4)
-
newLabel5Predicate
public static <BeanType extends I18nReferentialDto> Predicate<BeanType> newLabel5Predicate(String label5)
-
filterByLabel5
public static <BeanType extends I18nReferentialDto> List<BeanType> filterByLabel5(Collection<BeanType> $source, String label5)
-
newLabel6Predicate
public static <BeanType extends I18nReferentialDto> Predicate<BeanType> newLabel6Predicate(String label6)
-
filterByLabel6
public static <BeanType extends I18nReferentialDto> List<BeanType> filterByLabel6(Collection<BeanType> $source, String label6)
-
newLabel7Predicate
public static <BeanType extends I18nReferentialDto> Predicate<BeanType> newLabel7Predicate(String label7)
-
filterByLabel7
public static <BeanType extends I18nReferentialDto> List<BeanType> filterByLabel7(Collection<BeanType> $source, String label7)
-
newLabel8Predicate
public static <BeanType extends I18nReferentialDto> Predicate<BeanType> newLabel8Predicate(String label8)
-
filterByLabel8
public static <BeanType extends I18nReferentialDto> List<BeanType> filterByLabel8(Collection<BeanType> $source, String label8)
-
uniqueIndexByLabel1
public static <BeanType extends I18nReferentialDto> com.google.common.collect.ImmutableMap<String,BeanType> uniqueIndexByLabel1(Iterable<BeanType> $source)
-
uniqueIndexByLabel2
public static <BeanType extends I18nReferentialDto> com.google.common.collect.ImmutableMap<String,BeanType> uniqueIndexByLabel2(Iterable<BeanType> $source)
-
uniqueIndexByLabel3
public static <BeanType extends I18nReferentialDto> com.google.common.collect.ImmutableMap<String,BeanType> uniqueIndexByLabel3(Iterable<BeanType> $source)
-
uniqueIndexByLabel4
public static <BeanType extends I18nReferentialDto> com.google.common.collect.ImmutableMap<String,BeanType> uniqueIndexByLabel4(Iterable<BeanType> $source)
-
uniqueIndexByLabel5
public static <BeanType extends I18nReferentialDto> com.google.common.collect.ImmutableMap<String,BeanType> uniqueIndexByLabel5(Iterable<BeanType> $source)
-
uniqueIndexByLabel6
public static <BeanType extends I18nReferentialDto> com.google.common.collect.ImmutableMap<String,BeanType> uniqueIndexByLabel6(Iterable<BeanType> $source)
-
uniqueIndexByLabel7
public static <BeanType extends I18nReferentialDto> com.google.common.collect.ImmutableMap<String,BeanType> uniqueIndexByLabel7(Iterable<BeanType> $source)
-
uniqueIndexByLabel8
public static <BeanType extends I18nReferentialDto> com.google.common.collect.ImmutableMap<String,BeanType> uniqueIndexByLabel8(Iterable<BeanType> $source)
-
-