All Downloads are FREE. Search and download functionalities are using the official Maven repository.

net.fortuna.ical4j.vcard.IdentificationPropertyAccessor Maven / Gradle / Ivy

The newest version!
package net.fortuna.ical4j.vcard;

import net.fortuna.ical4j.model.PropertyContainer;
import net.fortuna.ical4j.vcard.property.*;

import java.util.List;
import java.util.Optional;

public interface IdentificationPropertyAccessor extends PropertyContainer {

    default List getFns() {
        return getProperties(PropertyName.FN.toString());
    }

    default Optional getN() {
        return getProperty(PropertyName.N);
    }

    default List getNicknames() {
        return getProperties(PropertyName.NICKNAME.toString());
    }

    default List getPhotos() {
        return getProperties(PropertyName.PHOTO.toString());
    }

    default Optional> getBDay() {
        return getProperty(PropertyName.BDAY);
    }

    default Optional> getAnniversary() {
        return getProperty(PropertyName.ANNIVERSARY);
    }

    default Optional getGender() {
        return getProperty(PropertyName.GENDER);
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy