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

org.infinispan.jcache.annotation.AggregatedParameterMetaData Maven / Gradle / Ivy

There is a newer version: 9.1.7.Final
Show newest version
package org.infinispan.jcache.annotation;

import java.util.List;

import static java.util.Collections.unmodifiableList;

/**
 * Contains all parameters metadata for a method annotated with a cache annotation.
 *
 * @author Kevin Pollet  (C) 2011 SERLI
 * @author Galder Zamarreño
 */
public class AggregatedParameterMetaData {

   private final List parameters;
   private final List keyParameters;
   private final ParameterMetaData valueParameter;

   public AggregatedParameterMetaData(List parameters,
         List keyParameters,
         ParameterMetaData valueParameter) {

      this.parameters = unmodifiableList(parameters);
      this.keyParameters = unmodifiableList(keyParameters);
      this.valueParameter = valueParameter;
   }

   public List getParameters() {
      return parameters;
   }

   public List getKeyParameters() {
      return keyParameters;
   }

   public ParameterMetaData getValueParameter() {
      return valueParameter;
   }

   @Override
   public String toString() {
      return new StringBuilder()
            .append("AggregatedParameterMetaData{")
            .append("parameters=").append(parameters)
            .append(", keyParameters=").append(keyParameters)
            .append(", valueParameter=").append(valueParameter)
            .append('}')
            .toString();
   }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy