Tabnine Logo
Map.of
Code IndexAdd Tabnine to your IDE (free)

How to use
of
method
in
java.util.Map

Best Java code snippets using java.util.Map.of (Showing top 20 results out of 315)

origin: br.com.jarch/jarch-bpmn

public static List<TaskBean> filterTaskCandidateGroup(List<String> processDefinitionKey, List<String> candidateGroups) {
  return filterTask(processDefinitionKey,
      Map.of(CANDIDATE_GROUPS, candidateGroups.stream().collect(Collectors.joining(","))));
}
origin: hank-whu/turbo-rpc

/**
 * 注册invoker
 * 
 * @param service
 *            实现类实例,重复调用时不会覆盖,会一直使用首次注册的实例
 * 
 * @param clazz
 *            服务接口
 * 
 */
public synchronized void register(Class<?> clazz, Object service) {
  register(Map.of(clazz, service));
}
origin: br.com.jarch/jarch-bpmn

  public static List<TaskBean> filterTaskCandidateGroup(List<String> processDefinitionKey, List<String> candidateGroups, Map<String, Object> variablesEquals) {
    String processVariables = getVariablesPathEquals(variablesEquals);

    return filterTask(processDefinitionKey,
        Map.of(
//                        ASSIGNEE, CDI.current().select(UserInformation.class).get().get().getId().toString(),
            PROCESS_VARIABLES, processVariables,
            CANDIDATE_GROUP, candidateGroups.stream().collect(Collectors.joining(","))
        ));
  }

origin: br.com.jarch/jarch-bpm

  public static List<TaskBean> filterTaskCandidateGroup(List<String> processDefinitionKey, List<String> candidateGroups, Map<String, Object> variablesEquals) {
    String processVariables = getVariablesPathEquals(variablesEquals);

    return filterTask(processDefinitionKey,
        Map.of(
//                        ASSIGNEE, CDI.current().select(UserInformation.class).get().get().getId().toString(),
            PROCESS_VARIABLES, processVariables,
            CANDIDATE_GROUP, candidateGroups.stream().collect(Collectors.joining(","))
        ));
  }

origin: net.dongliu/xhttp

  @Override
  public Map<String, List<String>> get(URI uri, Map<String, List<String>> requestHeaders) throws IOException {
    var headers = super.get(uri, requestHeaders);

    var userList = requestHeaders.getOrDefault(HeaderNames.COOKIE, List.of());
    var sessionList = headers.getOrDefault(HeaderNames.COOKIE, List.of());
    var cookieValues = Lists.concat(userList, sessionList);
    if (cookieValues.isEmpty()) {
      return Map.of();
    }
    return Map.of(HeaderNames.COOKIE, cookieValues);

  }
}
origin: com.javax0.geci/javageci-tools

private static CompoundParams getParameters(String generatorMnemonic, String string) {
  if (string.startsWith(generatorMnemonic + " ")) {
    var parametersString = string.substring(generatorMnemonic.length() + 1);
    return new CompoundParams(generatorMnemonic, Map.copyOf(getParameters(parametersString)));
  } else if (string.equals(generatorMnemonic)) {
    return new CompoundParams(generatorMnemonic, Map.of());
  } else {
    return null;
  }
}
origin: com.github.javaito/hcjf

private static Collection<JoinableMap> getReadableLayers() {
  Collection<JoinableMap> result = new ArrayList<>();
  for(ReadRowsLayerInterface layer : getAll(ReadRowsLayerInterface.class, (L)->true)) {
    result.add(new JoinableMap(Map.of("name", layer.getImplName())));
  }
  return result;
}
origin: com.yahoo.vespa/vespaclient-container-plugin

public void reportHttpRequest(String clientVersion) {
  if (clientVersion != null) {
    try {
      Point point = versionPointCache.get(clientVersion, () -> new Point(Map.of("client-version", clientVersion)));
      feedRequests.add(point);
    } catch (ExecutionException e) { // When Point constructor throws an exception
      throw new RuntimeException(e);
    }
  } else {
    feedRequests.add();
  }
}
origin: br.com.jarch/jarch-bpmn

public static List<TaskBean> filterTaskVariables(String processDefinitionKey, Map<String, Object> variablesEquals) {
  String processVariables = getVariablesPathEquals(variablesEquals);
  return filterTask(processDefinitionKey, Map.of(PROCESS_VARIABLES, processVariables));
}
origin: br.com.jarch/jarch-bpm

public static List<TaskBean> filterTaskVariables(String processDefinitionKey, Map<String, Object> variablesEquals) {
  String processVariables = getVariablesPathEquals(variablesEquals);
  return filterTask(processDefinitionKey, Map.of(PROCESS_VARIABLES, processVariables));
}
origin: br.com.jarch/jarch-bpm

public static List<ProcessInstanceBean> filterProcessInstance(List<String> processDefinitionKey, Map<String, Object> variablesEquals) {
  String processVariables = getVariablesPathEquals(variablesEquals);
  return filterProcessInstanceBase(processDefinitionKey, Map.of(VARIABLES, processVariables));
}
origin: br.com.jarch/jarch-bpmn

public static List<TaskBean> filterTaskAssignee(List<String> processDefinitionKey) {
  return filterTask(processDefinitionKey,
      Map.of(ASSIGNEE, CDI.current().select(UserInformation.class).get().get().getId().toString()));
}
origin: br.com.jarch/jarch-bpm

public static List<TaskBean> filterTaskInvolvedUser(List<String> processDefinitionKey) {
  return filterTask(processDefinitionKey,
      Map.of(INVOLVED_USER, CDI.current().select(UserInformation.class).get().get().getId().toString()));
}
origin: br.com.jarch/jarch-bpmn

public static List<TaskBean> filterTaskCandidateUser(List<String> processDefinitionKey) {
  return filterTask(processDefinitionKey,
      Map.of(CANDIDATE_USER, CDI.current().select(UserInformation.class).get().get().getId().toString()));
}
origin: br.com.jarch/jarch-bpmn

public static List<ProcessInstanceBean> filterProcessInstance(String processDefinitionKey, Map<String, Object> variablesEquals) {
  String processVariables = getVariablesPathEquals(variablesEquals);
  return filterProcessInstanceBase(List.of(processDefinitionKey), Map.of(VARIABLES, processVariables));
}
origin: br.com.jarch/jarch-bpm

public static List<ProcessInstanceBean> filterProcessInstance(String processDefinitionKey, Map<String, Object> variablesEquals) {
  String processVariables = getVariablesPathEquals(variablesEquals);
  return filterProcessInstanceBase(List.of(processDefinitionKey), Map.of(VARIABLES, processVariables));
}
origin: no.ssb.lds/linked-data-store-persistence-provider-test

public static TestSpecificationElement booleanNode(String name) {
  return new TestSpecificationElement(name, SpecificationElementType.EMBEDDED, Set.of("boolean"), List.of(), Set.of(), Map.of(), null);
}
origin: no.ssb.lds/linked-data-store-persistence-provider-test

public static TestSpecificationElement numericNode(String name) {
  return new TestSpecificationElement(name, SpecificationElementType.EMBEDDED, Set.of("numeric"), List.of(), Set.of(), Map.of(), null);
}
origin: no.ssb.lds/linked-data-store-persistence-provider-test

public static TestSpecificationElement arrayNode(String name, TestSpecificationElement items) {
  TestSpecificationElement arrayNode = new TestSpecificationElement(name, SpecificationElementType.EMBEDDED, Set.of("array"), List.of(), Set.of(), Map.of(), items);
  items.parent(arrayNode);
  return arrayNode;
}
origin: elastic/apm-agent-java

@Test
void serializeTags() {
  assertSoftly(softly -> {
    softly.assertThat(serializeTags(Map.of(".**", "foo.bar"))).isEqualTo(toJson(Map.of("___", "foo.bar")));
    softly.assertThat(serializeTags(Map.of("foo.bar", "baz"))).isEqualTo(toJson(Map.of("foo_bar", "baz")));
    softly.assertThat(serializeTags(Map.of("foo.bar.baz", "qux"))).isEqualTo(toJson(Map.of("foo_bar_baz", "qux")));
    softly.assertThat(serializeTags(Map.of("foo*bar*baz", "qux"))).isEqualTo(toJson(Map.of("foo_bar_baz", "qux")));
    softly.assertThat(serializeTags(Map.of("foo\"bar\"baz", "qux"))).isEqualTo(toJson(Map.of("foo_bar_baz", "qux")));
    final String longRandomString = RandomStringUtils.randomAlphanumeric(1025);
    final String truncatedLongRandomString = longRandomString.substring(0, 1023) + "…";
    softly.assertThat(serializeTags(Map.of(longRandomString, longRandomString))).isEqualTo(toJson(Map.of(truncatedLongRandomString, truncatedLongRandomString)));
  });
}
java.utilMapof

Popular methods of Map

  • put
    Maps the specified key to the specified value.
  • get
  • entrySet
    Returns a Set view of the mappings contained in this map. The set is backed by the map, so changes t
  • containsKey
    Returns whether this Map contains the specified key.
  • keySet
    Returns a set of the keys contained in this Map. The Set is backed by this Map so changes to one are
  • values
    Returns a Collection view of the values contained in this map. The collection is backed by the map,
  • remove
  • size
    Returns the number of mappings in this Map.
  • isEmpty
    Returns true if this map contains no key-value mappings.
  • clear
    Removes all elements from this Map, leaving it empty.
  • putAll
    Copies all of the mappings from the specified map to this map (optional operation). The effect of th
  • forEach
  • putAll,
  • forEach,
  • equals,
  • computeIfAbsent,
  • hashCode,
  • getOrDefault,
  • containsValue,
  • putIfAbsent,
  • compute,
  • merge

Popular in Java

  • Making http post requests using okhttp
  • getContentResolver (Context)
  • getResourceAsStream (ClassLoader)
  • findViewById (Activity)
  • Thread (java.lang)
    A thread is a thread of execution in a program. The Java Virtual Machine allows an application to ha
  • ServerSocket (java.net)
    This class represents a server-side socket that waits for incoming client connections. A ServerSocke
  • Locale (java.util)
    Locale represents a language/country/variant combination. Locales are used to alter the presentatio
  • Set (java.util)
    A Set is a data structure which does not allow duplicate elements.
  • Stack (java.util)
    Stack is a Last-In/First-Out(LIFO) data structure which represents a stack of objects. It enables u
  • LogFactory (org.apache.commons.logging)
    Factory for creating Log instances, with discovery and configuration features similar to that employ
  • CodeWhisperer alternatives
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