Tabnine Logo
MapEntry.createUnmodifiable
Code IndexAdd Tabnine to your IDE (free)

How to use
createUnmodifiable
method
in
jodd.util.collection.MapEntry

Best Java code snippets using jodd.util.collection.MapEntry.createUnmodifiable (Showing top 2 results out of 315)

origin: oblac/jodd

@Override
public Map.Entry<String, Object> next() {
  Map.Entry<String, Object> entry = mapIterator.next();
  if (entry.getValue() instanceof Map) {
    return MapEntry.createUnmodifiable(entry.getKey(), new JsonObject((Map) entry.getValue()));
  }
  if (entry.getValue() instanceof List) {
    return MapEntry.createUnmodifiable(entry.getKey(), new JsonArray((List) entry.getValue()));
  }
  return entry;
}
origin: oblac/jodd

  @Test
  void testUnmodifiableMapEntry() {
    MapEntry<String, Integer> mapEntry1 = MapEntry.createUnmodifiable("foo", 3);

    try {
      mapEntry1.setValue(123);
      fail("error");
    }
    catch (UnsupportedOperationException ignore) {
    }
  }
}
jodd.util.collectionMapEntrycreateUnmodifiable

Popular methods of MapEntry

  • <init>
  • create
  • equals
  • setValue

Popular in Java

  • Making http requests using okhttp
  • notifyDataSetChanged (ArrayAdapter)
  • requestLocationUpdates (LocationManager)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • GridBagLayout (java.awt)
    The GridBagLayout class is a flexible layout manager that aligns components vertically and horizonta
  • Menu (java.awt)
  • Window (java.awt)
    A Window object is a top-level window with no borders and no menubar. The default layout for a windo
  • FileNotFoundException (java.io)
    Thrown when a file specified by a program cannot be found.
  • IOException (java.io)
    Signals a general, I/O-related error. Error details may be specified when calling the constructor, a
  • Socket (java.net)
    Provides a client-side TCP socket.
  • Top Sublime Text plugins
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