congrats Icon
New! Announcing our next generation AI code completions
Read here
Tabnine Logo
AbstractHashFunction
Code IndexAdd Tabnine to your IDE (free)

How to use
AbstractHashFunction
in
com.google.common.hash

Best Java code snippets using com.google.common.hash.AbstractHashFunction (Showing top 20 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
List l =
  • Codota Iconnew ArrayList()
  • Codota Iconnew LinkedList()
  • Smart code suggestions by Tabnine
}
origin: google/guava

@Override
public HashCode hashBytes(byte[] input) {
 return hashBytes(input, 0, input.length);
}
origin: google/guava

 @Override
 public Hasher newHasher(int expectedInputSize) {
  checkArgument(
    expectedInputSize >= 0, "expectedInputSize must be >= 0 but was %s", expectedInputSize);
  return newHasher();
 }
}
origin: google/j2objc

 @Override
 public Hasher newHasher(int expectedInputSize) {
  checkArgument(
    expectedInputSize >= 0, "expectedInputSize must be >= 0 but was %s", expectedInputSize);
  return newHasher();
 }
}
origin: google/j2objc

@Override
public HashCode hashBytes(byte[] input) {
 return hashBytes(input, 0, input.length);
}
origin: google/guava

@Override
public HashCode hashUnencodedChars(CharSequence input) {
 int len = input.length();
 return newHasher(len * 2).putUnencodedChars(input).hash();
}
origin: wildfly/wildfly

@Override
public HashCode hashBytes(byte[] input) {
 return hashBytes(input, 0, input.length);
}
origin: google/guava

@Override
public HashCode hashBytes(ByteBuffer input) {
 return newHasher(input.remaining()).putBytes(input).hash();
}
origin: org.kill-bill.billing/killbill-platform-osgi-bundles-logger

@Override
public HashCode hashBytes(byte[] input) {
 return hashBytes(input, 0, input.length);
}
origin: google/guava

@Override
public <T> HashCode hashObject(T instance, Funnel<? super T> funnel) {
 return newHasher().putObject(instance, funnel).hash();
}
origin: org.jboss.eap/wildfly-client-all

@Override
public HashCode hashBytes(byte[] input) {
 return hashBytes(input, 0, input.length);
}
origin: google/guava

@Override
public HashCode hashString(CharSequence input, Charset charset) {
 return newHasher().putString(input, charset).hash();
}
origin: google/guava

@Override
public HashCode hashInt(int input) {
 return newHasher(4).putInt(input).hash();
}
origin: google/guava

@Override
public HashCode hashLong(long input) {
 return newHasher(8).putLong(input).hash();
}
origin: wildfly/wildfly

 @Override
 public Hasher newHasher(int expectedInputSize) {
  checkArgument(
    expectedInputSize >= 0, "expectedInputSize must be >= 0 but was %s", expectedInputSize);
  return newHasher();
 }
}
origin: google/guava

@Override
public HashCode hashBytes(byte[] input, int off, int len) {
 checkPositionIndexes(off, off + len, input.length);
 return newHasher(len).putBytes(input, off, len).hash();
}
origin: google/j2objc

@Override
public HashCode hashUnencodedChars(CharSequence input) {
 int len = input.length();
 return newHasher(len * 2).putUnencodedChars(input).hash();
}
origin: google/j2objc

@Override
public HashCode hashString(CharSequence input, Charset charset) {
 return newHasher().putString(input, charset).hash();
}
origin: google/j2objc

@Override
public HashCode hashLong(long input) {
 return newHasher(8).putLong(input).hash();
}
origin: google/j2objc

@Override
public HashCode hashInt(int input) {
 return newHasher(4).putInt(input).hash();
}
origin: google/j2objc

@Override
public HashCode hashBytes(ByteBuffer input) {
 return newHasher(input.remaining()).putBytes(input).hash();
}
com.google.common.hashAbstractHashFunction

Javadoc

Skeleton implementation of HashFunction in terms of #newHasher().

TODO(lowasser): make public

Most used methods

  • hashBytes
  • newHasher

Popular in Java

  • Creating JSON documents from java classes using gson
  • findViewById (Activity)
  • scheduleAtFixedRate (ScheduledExecutorService)
  • setContentView (Activity)
  • Font (java.awt)
    The Font class represents fonts, which are used to render text in a visible way. A font provides the
  • BufferedInputStream (java.io)
    A BufferedInputStream adds functionality to another input stream-namely, the ability to buffer the i
  • FileWriter (java.io)
    A specialized Writer that writes to a file in the file system. All write requests made by calling me
  • Time (java.sql)
    Java representation of an SQL TIME value. Provides utilities to format and parse the time's represen
  • Stream (java.util.stream)
    A sequence of elements supporting sequential and parallel aggregate operations. The following exampl
  • Project (org.apache.tools.ant)
    Central representation of an Ant project. This class defines an Ant project with all of its targets,
  • Top 17 Plugins for Android Studio
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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