public static PuhelinnumeroDTO getPuhelinNumeroByType(List<YhteystietoDTO> puhelins, PuhelinNumeroTyyppi tyyppi) { PuhelinnumeroDTO puhelinNro = null; for (YhteystietoDTO puhelin : puhelins) { if (puhelin instanceof PuhelinnumeroDTO) { if (((PuhelinnumeroDTO) puhelin).getTyyppi().equals(tyyppi)) { puhelinNro = (PuhelinnumeroDTO) puhelin; break; } } } return puhelinNro; }
/** * Create an instance of {@link FindBasicOrganisaatioChildsToOidTypesResponse } * */ public FindBasicOrganisaatioChildsToOidTypesResponse createFindBasicOrganisaatioChildsToOidTypesResponse() { return new FindBasicOrganisaatioChildsToOidTypesResponse(); }
/** * Create an instance of {@link FindParentsToResponseType } * */ public FindParentsToResponseType createFindParentsToResponseType() { return new FindParentsToResponseType(); }
/** * Create an instance of {@link OrganisaatioDTO } * */ public OrganisaatioDTO createOrganisaatioDTO() { return new OrganisaatioDTO(); }
/** * Create an instance of {@link FindOrganisaatioByNimiLikeResponseType } * */ public FindOrganisaatioByNimiLikeResponseType createFindOrganisaatioByNimiLikeResponseType() { return new FindOrganisaatioByNimiLikeResponseType(); }
/** * Create an instance of {@link FindChildrenToType } * */ public FindChildrenToType createFindChildrenToType() { return new FindChildrenToType(); }
/** * Create an instance of {@link YhteyshenkiloTyyppi } * */ public YhteyshenkiloTyyppi createYhteyshenkiloTyyppi() { return new YhteyshenkiloTyyppi(); }
/** * Create an instance of {@link PuhelinnumeroDTO } * */ public PuhelinnumeroDTO createPuhelinnumeroDTO() { return new PuhelinnumeroDTO(); }
/** * Create an instance of {@link OsoiteDTO } * */ public OsoiteDTO createOsoiteDTO() { return new OsoiteDTO(); }
/** * Create an instance of {@link FindByOidResponseType } * */ public FindByOidResponseType createFindByOidResponseType() { return new FindByOidResponseType(); }
/** * Create an instance of {@link FindBasicParentOrganisaatioTypesResponse } * */ public FindBasicParentOrganisaatioTypesResponse createFindBasicParentOrganisaatioTypesResponse() { return new FindBasicParentOrganisaatioTypesResponse(); }
/** * Create an instance of {@link FindYhteystietoMetadataForOrganisaatioType } * */ public FindYhteystietoMetadataForOrganisaatioType createFindYhteystietoMetadataForOrganisaatioType() { return new FindYhteystietoMetadataForOrganisaatioType(); }
/** * Create an instance of {@link FindParentsByOidListType } * */ public FindParentsByOidListType createFindParentsByOidListType() { return new FindParentsByOidListType(); }
/** * Create an instance of {@link FindAllType } * */ public FindAllType createFindAllType() { return new FindAllType(); }
/** * Create an instance of {@link SearchOrganisaatiosResponseType } * */ public SearchOrganisaatiosResponseType createSearchOrganisaatiosResponseType() { return new SearchOrganisaatiosResponseType(); }
/** * Create an instance of {@link YhteystietojenTyyppiDTO } * */ public YhteystietojenTyyppiDTO createYhteystietojenTyyppiDTO() { return new YhteystietojenTyyppiDTO(); }
/** * Create an instance of {@link OrganisaatioPerustietoType } * */ public OrganisaatioPerustietoType createOrganisaatioPerustietoType() { return new OrganisaatioPerustietoType(); }
/** * Create an instance of {@link OrganisaatioOidType } * */ public OrganisaatioOidType createOrganisaatioOidType() { return new OrganisaatioOidType(); }