A lot of things².
- Change DataParsing to a generic interface. - Add PartiePoisson - Add comments to Population class.
This commit is contained in:
@@ -9,7 +9,21 @@ import java.util.HashSet;
|
||||
*/
|
||||
public interface DataParsing {
|
||||
|
||||
public static HashSet<Poisson> parse(RawData data) throws RawDataOverflow {
|
||||
/**
|
||||
* Permet de parser un élément à partir d'un objet RawData.
|
||||
* @param data l'objet RawData
|
||||
* @param parseTypeId Permet d'indiquer le type de Parsing que l'on veut.
|
||||
* @return Un HashSet de données T retourné.
|
||||
* @param <T> Notre paramètre générique adaptable à plusieurs classes.
|
||||
* @throws RawDataOverflow Si on dépasse la taille de l'objet RawData.
|
||||
* @throws InvalidParsingException Si le type de parsing n'existe pas.
|
||||
*/
|
||||
public static <T> HashSet<T> parse(RawData data, int parseTypeId ) throws RawDataOverflow, InvalidParsingException {
|
||||
return null;
|
||||
}
|
||||
|
||||
public static <T> HashSet<T> parse(RawData data) throws RawDataOverflow, InvalidParsingException {
|
||||
return null;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user