Codota Logo
Table.stream
Code IndexAdd Codota to your IDE (free)

How to use
stream
method
in
org.jgroups.util.Table

Best Java code snippets using org.jgroups.util.Table.stream (Showing top 6 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
SimpleDateFormat s =
  • Codota IconString pattern;new SimpleDateFormat(pattern)
  • Codota IconString template;Locale locale;new SimpleDateFormat(template, locale)
  • Codota Iconnew SimpleDateFormat()
  • Smart code suggestions by Codota
}
origin: wildfly/wildfly

/** Dumps the seqnos in the table as a list */
public String dump() {
  lock.lock();
  try {
    return stream(low, hr).filter(Objects::nonNull).map(Object::toString)
     .collect(Collectors.joining(", "));
  }
  finally {
    lock.unlock();
  }
}
origin: wildfly/wildfly

/** Iterate from low to hr and add up non-null values. Caller must hold the lock. */
@GuardedBy("lock")
public int computeSize() {
  return (int)stream().filter(Objects::nonNull).count();
}
origin: wildfly/wildfly

protected static long sizeOfAllMessages(Table<Message> buf, boolean include_headers) {
  return buf.stream().reduce(0L, (size,el) -> {
    if(el == null)
      return size;
    else
      return size + (include_headers? el.size() : el.getLength());
  }, (l,r) -> l);
}
origin: org.jboss.eap/wildfly-client-all

/** Dumps the seqnos in the table as a list */
public String dump() {
  lock.lock();
  try {
    return stream(low, hr).filter(Objects::nonNull).map(Object::toString)
     .collect(Collectors.joining(", "));
  }
  finally {
    lock.unlock();
  }
}
origin: org.jboss.eap/wildfly-client-all

/** Iterate from low to hr and add up non-null values. Caller must hold the lock. */
@GuardedBy("lock")
public int computeSize() {
  return (int)stream().filter(Objects::nonNull).count();
}
origin: org.jboss.eap/wildfly-client-all

protected static long sizeOfAllMessages(Table<Message> buf, boolean include_headers) {
  return buf.stream().reduce(0L, (size,el) -> {
    if(el == null)
      return size;
    else
      return size + (include_headers? el.size() : el.getLength());
  }, (l,r) -> l);
}
org.jgroups.utilTablestream

Popular methods of Table

  • add
    Adds elements from the list to the table
  • <init>
  • _add
  • _compact
    Moves the contents of matrix down by the number of purged rows and resizes the matrix accordingly. T
  • capacity
    Returns the total capacity in the matrix
  • compact
  • computeIndex
    Computes and returns the index within a row for seqno
  • computeRow
    Computes and returns the row index for seqno. The caller must hold the lock.
  • computeSize
    Iterate from low to hr and add up non-null values. Caller must hold the lock.
  • findHighestSeqno
  • forEach
    Iterates over the matrix with range [from .. to] (including from and to), and calls Visitor#visit(lo
  • get
    Returns an element at seqno
  • forEach,
  • get,
  • getAdders,
  • getDigest,
  • getHighestDeliverable,
  • getHighestDelivered,
  • getHighestReceived,
  • getLow,
  • getMissing,
  • getNumCompactions

Popular in Java

  • Start an intent from android
  • getSystemService (Context)
  • getExternalFilesDir (Context)
  • findViewById (Activity)
  • GridLayout (java.awt)
    The GridLayout class is a layout manager that lays out a container's components in a rectangular gri
  • InputStreamReader (java.io)
    An InputStreamReader is a bridge from byte streams to character streams: It reads bytes and decodes
  • Calendar (java.util)
    Calendar is an abstract base class for converting between a Date object and a set of integer fields
  • Collection (java.util)
    Collection is the root of the collection hierarchy. It defines operations on data collections and t
  • Modifier (javassist)
    The Modifier class provides static methods and constants to decode class and member access modifiers
  • BoxLayout (javax.swing)
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now