Tabnine Logo
TreeMap.put
Code IndexAdd Tabnine to your IDE (free)

How to use
put
method
in
javaslang.collection.TreeMap

Best Java code snippets using javaslang.collection.TreeMap.put (Showing top 4 results out of 315)

origin: org.immutables.javaslang/javaslang-encodings

@Encoding.Naming(standard = Encoding.StandardNaming.PUT)
@Encoding.Init
void put(
 final K key,
 final V value)
{
 this.map = this.map.put(key, value);
}
origin: org.immutables.javaslang/javaslang-encodings

@Encoding.Naming(value = "putEntry*", depluralize = true)
@Encoding.Init
void putEntry(
 final Tuple2<K, V> entry)
{
 this.map = this.map.put(entry);
}
origin: com.io7m.smfj/com.io7m.smfj.bytebuffer

/**
 * @return The packed attributes by octet offset
 */
@Value.Derived
default SortedMap<Integer, SMFByteBufferPackedAttribute> packedAttributesByOffset()
{
 TreeMap<Integer, SMFByteBufferPackedAttribute> output = TreeMap.empty();
 final Seq<SMFAttribute> ordered = this.attributesOrdered();
 int offset = 0;
 for (int index = 0; index < ordered.size(); ++index) {
  final SMFAttribute attr = ordered.get(index);
  final SMFByteBufferPackedAttribute packed =
   SMFByteBufferPackedAttribute.of(attr, index, offset);
  output = output.put(Integer.valueOf(offset), packed);
  offset = Math.addExact(offset, attr.sizeOctets());
 }
 return output;
}
origin: com.io7m.smfj/com.io7m.smfj.bytebuffer

@Override
public Optional<SMFParserEventsDataAttributeValuesType> onDataAttributeStart(
 final SMFAttribute attribute)
{
 TreeMap<Integer, SMFByteBufferAttributePacker> packers = TreeMap.empty();
 final SMFAttributeName name = attribute.name();
 for (final Tuple2<Integer, SMFByteBufferPackingConfiguration> p : this.config) {
  final Integer id = p._1;
  final SMFByteBufferPackingConfiguration bc = p._2;
  final SortedMap<SMFAttributeName, SMFByteBufferPackedAttribute> by_name =
   bc.packedAttributesByName();
  if (by_name.containsKey(name)) {
   final ByteBuffer b = this.attr_buffers.get(id).get();
   final SMFByteBufferPackedAttribute pa = by_name.get(name).get();
   final SMFByteBufferAttributePacker packer =
    new SMFByteBufferAttributePacker(
     this,
     b,
     bc,
     pa,
     this.header.vertexCount());
   packers = packers.put(id, packer);
  }
 }
 this.attr_packers = packers;
 return Optional.of(this);
}
javaslang.collectionTreeMapput

Popular methods of TreeMap

  • empty
  • ofAll
  • ofEntries

Popular in Java

  • Reading from database using SQL prepared statement
  • getExternalFilesDir (Context)
  • addToBackStack (FragmentTransaction)
  • getSupportFragmentManager (FragmentActivity)
  • Window (java.awt)
    A Window object is a top-level window with no borders and no menubar. The default layout for a windo
  • ByteBuffer (java.nio)
    A buffer for bytes. A byte buffer can be created in either one of the following ways: * #allocate
  • Permission (java.security)
    Legacy security code; do not use.
  • DateFormat (java.text)
    Formats or parses dates and times.This class provides factories for obtaining instances configured f
  • JarFile (java.util.jar)
    JarFile is used to read jar entries and their associated data from jar files.
  • Reflections (org.reflections)
    Reflections one-stop-shop objectReflections scans your classpath, indexes the metadata, allows you t
  • Top 12 Jupyter Notebook extensions
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