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

ru.progrm_jarvis.javacommons.primitive.wrapper.PrimitiveWrapper Maven / Gradle / Ivy

package ru.progrm_jarvis.javacommons.primitive.wrapper;

/**
 * Mutable wrapper of a primitive type, this is mostly useful for passing these to lambdas.
 *
 * @param  type of wrapped value
 */
public interface PrimitiveWrapper {

    /**
     * Returns the primitive class wrapped by this one.
     *
     * @return wrapped primitive class
     */
    Class getPrimitiveClass();

    /**
     * Returns the {@link java.lang} primitive wrapper class corresponding to the one wrapped.
     *
     * @return related {@link java.lang} primitive wrapper
     */
    Class getWrapperClass();
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy