Tabnine Logo
UpdatableQHashSeparateKVCharLongMapGO.insert
Code IndexAdd Tabnine to your IDE (free)

How to use
insert
method
in
net.openhft.koloboke.collect.impl.hash.UpdatableQHashSeparateKVCharLongMapGO

Best Java code snippets using net.openhft.koloboke.collect.impl.hash.UpdatableQHashSeparateKVCharLongMapGO.insert (Showing top 14 results out of 315)

origin: net.openhft/koloboke-impl-jdk6-7

@Override
public void justPut(char key, long value) {
  int index = insert(key, value);
  if (index < 0) {
    // key was absent
    return;
  } else {
    // key is present
    values[index] = value;
    return;
  }
}
origin: net.openhft/koloboke-impl-jdk8

@Override
public void justPut(char key, long value) {
  int index = insert(key, value);
  if (index < 0) {
    // key was absent
    return;
  } else {
    // key is present
    values[index] = value;
    return;
  }
}
origin: net.openhft/koloboke-impl-jdk6-7

@Override
public Long putIfAbsent(Character key, Long value) {
  int index = insert(key, value);
  if (index < 0) {
    // key was absent
    return null;
  } else {
    // key is present
    return values[index];
  }
}
origin: net.openhft/koloboke-impl-jdk8

@Override
public long addValue(char key, long value) {
  int index = insert(key, value);
  if (index < 0) {
    // key was absent
    return value;
  } else {
    // key is present
    long[] vals = values;
    long newValue = vals[index] + value;
    vals[index] = newValue;
    return newValue;
  }
}
origin: net.openhft/koloboke-impl-jdk8

@Override
public Long put(Character key, Long value) {
  int index = insert(key, value);
  if (index < 0) {
    // key was absent
    return null;
  } else {
    // key is present
    long[] vals = values;
    long prevValue = vals[index];
    vals[index] = value;
    return prevValue;
  }
}
origin: net.openhft/koloboke-impl-jdk6-7

@Override
public Long put(Character key, Long value) {
  int index = insert(key, value);
  if (index < 0) {
    // key was absent
    return null;
  } else {
    // key is present
    long[] vals = values;
    long prevValue = vals[index];
    vals[index] = value;
    return prevValue;
  }
}
origin: net.openhft/koloboke-impl-jdk8

@Override
public Long putIfAbsent(Character key, Long value) {
  int index = insert(key, value);
  if (index < 0) {
    // key was absent
    return null;
  } else {
    // key is present
    return values[index];
  }
}
origin: net.openhft/koloboke-impl-jdk6-7

@Override
public long addValue(char key, long addition, long defaultValue) {
  long value = defaultValue + addition;
  int index = insert(key, value);
  if (index < 0) {
    // key was absent
    return value;
  } else {
    // key is present
    long[] vals = values;
    long newValue = vals[index] + addition;
    vals[index] = newValue;
    return newValue;
  }
}
origin: net.openhft/koloboke-impl-jdk6-7

@Override
public long addValue(char key, long value) {
  int index = insert(key, value);
  if (index < 0) {
    // key was absent
    return value;
  } else {
    // key is present
    long[] vals = values;
    long newValue = vals[index] + value;
    vals[index] = newValue;
    return newValue;
  }
}
origin: net.openhft/koloboke-impl-jdk8

@Override
public long addValue(char key, long addition, long defaultValue) {
  long value = defaultValue + addition;
  int index = insert(key, value);
  if (index < 0) {
    // key was absent
    return value;
  } else {
    // key is present
    long[] vals = values;
    long newValue = vals[index] + addition;
    vals[index] = newValue;
    return newValue;
  }
}
origin: net.openhft/koloboke-impl-jdk6-7

@Override
public long putIfAbsent(char key, long value) {
  int index = insert(key, value);
  if (index < 0) {
    // key was absent
    return defaultValue();
  } else {
    // key is present
    return values[index];
  }
}
origin: net.openhft/koloboke-impl-jdk8

@Override
public long putIfAbsent(char key, long value) {
  int index = insert(key, value);
  if (index < 0) {
    // key was absent
    return defaultValue();
  } else {
    // key is present
    return values[index];
  }
}
origin: net.openhft/koloboke-impl-jdk8

@Override
public long put(char key, long value) {
  int index = insert(key, value);
  if (index < 0) {
    // key was absent
    return defaultValue();
  } else {
    // key is present
    long[] vals = values;
    long prevValue = vals[index];
    vals[index] = value;
    return prevValue;
  }
}
origin: net.openhft/koloboke-impl-jdk6-7

@Override
public long put(char key, long value) {
  int index = insert(key, value);
  if (index < 0) {
    // key was absent
    return defaultValue();
  } else {
    // key is present
    long[] vals = values;
    long prevValue = vals[index];
    vals[index] = value;
    return prevValue;
  }
}
net.openhft.koloboke.collect.impl.hashUpdatableQHashSeparateKVCharLongMapGOinsert

Popular methods of UpdatableQHashSeparateKVCharLongMapGO

  • changeFree
  • clear
  • containsEntry
  • containsValue
  • copy
  • currentLoad
  • defaultValue
  • hashCode
  • hashConfig
  • incrementModCount
  • index
  • init
  • index,
  • init,
  • initForRehash,
  • isEmpty,
  • modCount,
  • postInsertHook,
  • put,
  • putAll,
  • remove

Popular in Java

  • Reading from database using SQL prepared statement
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • startActivity (Activity)
  • findViewById (Activity)
  • Socket (java.net)
    Provides a client-side TCP socket.
  • UnknownHostException (java.net)
    Thrown when a hostname can not be resolved.
  • Reference (javax.naming)
  • Filter (javax.servlet)
    A filter is an object that performs filtering tasks on either the request to a resource (a servlet o
  • HttpServlet (javax.servlet.http)
    Provides an abstract class to be subclassed to create an HTTP servlet suitable for a Web site. A sub
  • Project (org.apache.tools.ant)
    Central representation of an Ant project. This class defines an Ant project with all of its targets,
  • Top plugins for WebStorm
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