congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
KeyValue
Code IndexAdd Tabnine to your IDE (free)

How to use
KeyValue
in
org.hippoecm.hst.util

Best Java code snippets using org.hippoecm.hst.util.KeyValue (Showing top 17 results out of 315)

origin: org.onehippo.ecm.hst/hst-commons

/**
 * Constructs a new pair from the specified <code>KeyValue</code>.
 * 
 * @param pair
 *            the pair to copy, must not be null
 * @param compareByKeyOnly
 *            flag if equals() depends on key only 
 * @throws NullPointerException
 *             if the entry is null
 */
public DefaultKeyValue(final KeyValue<K, V> pair, final boolean compareByKeyOnly)
{
  this(pair.getKey(), pair.getValue(), compareByKeyOnly);
}
origin: org.onehippo.cms7.hst.components/hst-core

public Collection<HstComponentException> getAllComponentExceptions() {
  if (allExceptions == null) {
    allExceptions = new ArrayList<HstComponentException>();
    
    for (KeyValue<HstComponentInfo, Collection<HstComponentException>> pair : componentExceptions) {
      allExceptions.addAll(pair.getValue());
    }
  }
  
  return allExceptions;
}

origin: org.onehippo.cms7.hst.components/hst-core

public Collection<HstComponentInfo> getComponentInfos() {
  if (componentInfos == null) {
    componentInfos = new ArrayList<HstComponentInfo>();
    
    for (KeyValue<HstComponentInfo, Collection<HstComponentException>> pair : componentExceptions) {
      componentInfos.add(pair.getKey());
    }
  }
  
  return componentInfos;
}
origin: org.onehippo.cms7.hst/hst-mock

public List<Element> getHeadElements() {
  List<Element> elements = new LinkedList<Element>();
  if (headElements != null) {
    for (KeyValue<String, Element> kv : headElements) {
      elements.add(kv.getValue());
    }
  }
  return elements;
}
origin: org.onehippo.ecm.hst.components/hst-core

public Collection<HstComponentInfo> getComponentInfos() {
  if (componentInfos == null) {
    componentInfos = new ArrayList<HstComponentInfo>();
    
    for (KeyValue<HstComponentInfo, Collection<HstComponentException>> pair : componentExceptions) {
      componentInfos.add(pair.getKey());
    }
  }
  
  return componentInfos;
}
origin: org.onehippo.cms7.hst/hst-mock

/**
 * Constructs a new pair from the specified <code>KeyValue</code>.
 * 
 * @param pair
 *            the pair to copy, must not be null
 * @param compareByKeyOnly
 *            flag if equals() depends on key only 
 * @throws NullPointerException
 *             if the entry is null
 */
public MockKeyValue(final KeyValue<K, V> pair, final boolean compareByKeyOnly) {
  this(pair.getKey(), pair.getValue(), compareByKeyOnly);
}
origin: org.onehippo.ecm.hst/hst-commons

public List<Element> getHeadElements() {
  List<Element> elements = new LinkedList<Element>();
  
  if (this.headElements != null) {
    for (KeyValue<String, Element> kv : this.headElements) {
      elements.add(kv.getValue());
    }
  }
  
  return elements;
}
origin: org.onehippo.cms7.hst.components/hst-core

public Collection<HstComponentException> getComponentExceptions(HstComponentInfo componentInfo) {
  for (KeyValue<HstComponentInfo, Collection<HstComponentException>> pair : componentExceptions) {
    HstComponentInfo componentInfoKey = pair.getKey();
    
    if (componentInfoKey.getId().equals(componentInfo.getId())) {
      return pair.getValue();
    }
  }
  
  return Collections.emptyList();
}

origin: org.onehippo.ecm.hst.components/hst-core

public Collection<HstComponentException> getAllComponentExceptions() {
  if (allExceptions == null) {
    allExceptions = new ArrayList<HstComponentException>();
    
    for (KeyValue<HstComponentInfo, Collection<HstComponentException>> pair : componentExceptions) {
      allExceptions.addAll(pair.getValue());
    }
  }
  
  return allExceptions;
}

origin: org.onehippo.ecm.hst.components/hst-core

public Collection<HstComponentException> getComponentExceptions(HstComponentInfo componentInfo) {
  for (KeyValue<HstComponentInfo, Collection<HstComponentException>> pair : componentExceptions) {
    HstComponentInfo componentInfoKey = pair.getKey();
    
    if (componentInfoKey.getId().equals(componentInfo.getId())) {
      return pair.getValue();
    }
  }
  
  return Collections.emptyList();
}

origin: org.onehippo.ecm.hst/hst-content-beans

if(path.startsWith(mapper.getKey())) {
  String virtualizedPath = mapper.getValue() + path.substring(mapper.getKey().length());
  return (Node)canonical.getSession().getItem(virtualizedPath);
origin: org.onehippo.cms7.hst.components/hst-core

key = pair.getKey();
value = pair.getValue();
key = pair.getKey();
value = pair.getValue();
origin: org.onehippo.ecm.hst/hst-commons

Matcher matcher = pair.getKey().matcher(valueString);
  servletPath = pair.getValue();
origin: org.onehippo.cms7.hst/hst-client

path = removeFacetKeyValueFromPath(path, toRemove.getFacetValueCombi().getKey(), toRemove.getFacetValueCombi().getValue());
origin: org.onehippo.ecm.hst/hst-client

String removeFacetValue = "/"+toRemove.getFacetValueCombi().getKey()+"/"+toRemove.getFacetValueCombi().getValue();
if(path.contains(removeFacetValue)) {
  path = path.replace(removeFacetValue, "");
origin: org.onehippo.ecm.hst/hst-commons

Matcher matcher = pair.getKey().matcher(pathInfo);
  pathInfo = matcher.replaceAll(pair.getValue());
  break;
origin: org.onehippo.ecm.hst/hst-commons

addResponseHeadElement(entry.getValue(), entry.getKey());
org.hippoecm.hst.utilKeyValue

Javadoc

Defines a simple key value pair. A Map Entry has considerable additional semantics over and above a simple key-value pair. This interface defines the minimum key value, with just the two get methods.

Most used methods

  • getKey
    Returns the key corresponding to the pair.
  • getValue
    Returns the value corresponding to the pair.

Popular in Java

  • Making http requests using okhttp
  • getSharedPreferences (Context)
  • scheduleAtFixedRate (ScheduledExecutorService)
  • getResourceAsStream (ClassLoader)
  • Thread (java.lang)
    A thread is a thread of execution in a program. The Java Virtual Machine allows an application to ha
  • Hashtable (java.util)
    A plug-in replacement for JDK1.5 java.util.Hashtable. This version is based on org.cliffc.high_scale
  • Set (java.util)
    A Set is a data structure which does not allow duplicate elements.
  • ImageIO (javax.imageio)
  • BoxLayout (javax.swing)
  • Runner (org.openjdk.jmh.runner)
  • Best plugins for Eclipse
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now