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

io.polyglotted.common.model.HasMeta Maven / Gradle / Ivy

package io.polyglotted.common.model;

public interface HasMeta {
    SortedMapResult _meta();

    default boolean hasMeta() { return !_meta().isEmpty(); }

    @SuppressWarnings("unchecked")
    default > T withMeta(String prop, Object value) { if (prop.startsWith("&")) { _meta().put(prop, value); } return (T) this; }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy