Package org.nuiton.topiatest.beangen
Class GeneratedVoitureHelper
java.lang.Object
org.nuiton.topiatest.beangen.GeneratedVoitureHelper
- Direct Known Subclasses:
VoitureHelper
public abstract class GeneratedVoitureHelper
extends java.lang.Object
-
Field Summary
Fields Modifier and Type Field Description protected static com.google.common.base.Function<Voiture,java.lang.Integer>IMMATRICULATION_FUNCTIONprotected static com.google.common.base.Function<Voiture,java.lang.String>MODELE_FUNCTIONprotected static com.google.common.base.Function<Voiture,Personne>PROPRIETAIRE_FUNCTION -
Constructor Summary
Constructors Constructor Description GeneratedVoitureHelper() -
Method Summary
Modifier and Type Method Description static <BeanType extends Voiture>
voidcopyVoiture(BeanType source, BeanType target)static <BeanType extends Voiture>
voidcopyVoiture(BeanType source, BeanType target, org.nuiton.util.beans.Binder<BeanType,BeanType> binder)static <BeanType extends Voiture>
java.util.List<BeanType>filterByImmatriculation(java.util.Collection<BeanType> $source, int immatriculation)static <BeanType extends Voiture>
java.util.List<BeanType>filterByModele(java.util.Collection<BeanType> $source, java.lang.String modele)static <BeanType extends Voiture>
java.util.List<BeanType>filterByProprietaire(java.util.Collection<BeanType> $source, Personne proprietaire)static <BeanType extends Voiture>
com.google.common.base.Function<BeanType,java.lang.Integer>getImmatriculationFunction()static <BeanType extends Voiture>
com.google.common.base.Function<BeanType,java.lang.String>getModeleFunction()static <BeanType extends Voiture>
com.google.common.base.Function<BeanType,Personne>getProprietaireFunction()static <BeanType extends Voiture>
com.google.common.base.Function<BeanType,java.lang.Integer>newImmatriculationFunction()static <BeanType extends Voiture>
com.google.common.base.Predicate<BeanType>newImmatriculationPredicate(int immatriculation)static <BeanType extends Voiture>
com.google.common.base.Function<BeanType,java.lang.String>newModeleFunction()static <BeanType extends Voiture>
com.google.common.base.Predicate<BeanType>newModelePredicate(java.lang.String modele)static <BeanType extends Voiture>
com.google.common.base.Function<BeanType,Personne>newProprietaireFunction()static <BeanType extends Voiture>
com.google.common.base.Predicate<BeanType>newProprietairePredicate(Personne proprietaire)static <BeanType extends Voiture>
java.lang.Class<BeanType>typeOfVoiture()static <BeanType extends Voiture>
com.google.common.collect.ImmutableMap<java.lang.Integer,BeanType>uniqueIndexByImmatriculation(java.lang.Iterable<BeanType> $source)static <BeanType extends Voiture>
com.google.common.collect.ImmutableMap<java.lang.String,BeanType>uniqueIndexByModele(java.lang.Iterable<BeanType> $source)static <BeanType extends Voiture>
com.google.common.collect.ImmutableMap<Personne,BeanType>uniqueIndexByProprietaire(java.lang.Iterable<BeanType> $source)
-
Field Details
-
IMMATRICULATION_FUNCTION
protected static final com.google.common.base.Function<Voiture,java.lang.Integer> IMMATRICULATION_FUNCTION -
MODELE_FUNCTION
-
PROPRIETAIRE_FUNCTION
-
-
Constructor Details
-
GeneratedVoitureHelper
public GeneratedVoitureHelper()
-
-
Method Details
-
typeOfVoiture
-
copyVoiture
-
copyVoiture
public static <BeanType extends Voiture> void copyVoiture(BeanType source, BeanType target, org.nuiton.util.beans.Binder<BeanType,BeanType> binder) -
newImmatriculationPredicate
public static <BeanType extends Voiture> com.google.common.base.Predicate<BeanType> newImmatriculationPredicate(int immatriculation) -
filterByImmatriculation
public static <BeanType extends Voiture> java.util.List<BeanType> filterByImmatriculation(java.util.Collection<BeanType> $source, int immatriculation) -
newModelePredicate
public static <BeanType extends Voiture> com.google.common.base.Predicate<BeanType> newModelePredicate(java.lang.String modele) -
filterByModele
public static <BeanType extends Voiture> java.util.List<BeanType> filterByModele(java.util.Collection<BeanType> $source, java.lang.String modele) -
newProprietairePredicate
-
filterByProprietaire
-
getImmatriculationFunction
public static <BeanType extends Voiture> com.google.common.base.Function<BeanType,java.lang.Integer> getImmatriculationFunction() -
newImmatriculationFunction
public static <BeanType extends Voiture> com.google.common.base.Function<BeanType,java.lang.Integer> newImmatriculationFunction() -
uniqueIndexByImmatriculation
public static <BeanType extends Voiture> com.google.common.collect.ImmutableMap<java.lang.Integer,BeanType> uniqueIndexByImmatriculation(java.lang.Iterable<BeanType> $source) -
getModeleFunction
public static <BeanType extends Voiture> com.google.common.base.Function<BeanType,java.lang.String> getModeleFunction() -
newModeleFunction
public static <BeanType extends Voiture> com.google.common.base.Function<BeanType,java.lang.String> newModeleFunction() -
uniqueIndexByModele
public static <BeanType extends Voiture> com.google.common.collect.ImmutableMap<java.lang.String,BeanType> uniqueIndexByModele(java.lang.Iterable<BeanType> $source) -
getProprietaireFunction
-
newProprietaireFunction
-
uniqueIndexByProprietaire
-