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

org.mydotey.scf.labeled.PropertyLabels Maven / Gradle / Ivy

package org.mydotey.scf.labeled;

import java.util.Collection;
import java.util.Collections;

/**
 * @author koqizhao
 *
 * Jun 15, 2018
 */
public interface PropertyLabels {

    /**
     * empty labels and no altenative
     */
    PropertyLabels EMPTY = new PropertyLabels() {
        @Override
        public Collection getLabels() {
            return Collections.emptyList();
        }

        @Override
        public PropertyLabels getAlternative() {
            return null;
        }

        @Override
        public String toString() {
            return "EMPTY";
        }
    };

    /**
     * labels
     */
    Collection getLabels();

    /**
     * if not configured for @see {@link PropertyLabels#getLabels()}, use the alternative to have a try
     * 

* default to null */ PropertyLabels getAlternative(); }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy