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

org.javers.core.metamodel.type.KeyValueType Maven / Gradle / Ivy

There is a newer version: 7.6.1
Show newest version
package org.javers.core.metamodel.type;

import java.lang.reflect.Type;

/**
 * @author bartosz.walacik
 */
public abstract class KeyValueType extends EnumerableType {

    public KeyValueType(Type baseJavaType, int expectedArgs) {
        super(baseJavaType, expectedArgs);
    }

    /**
     * never returns null
     */
    public Type getKeyType() {
        return getConcreteClassTypeArguments().get(0);
    }

    /**
     * never returns null
     */
    public Type getValueType() {
        return getConcreteClassTypeArguments().get(1);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy