Tabnine Logo
StreamUtils.reverse
Code IndexAdd Tabnine to your IDE (free)

How to use
reverse
method
in
com.aol.cyclops.streams.StreamUtils

Best Java code snippets using com.aol.cyclops.streams.StreamUtils.reverse (Showing top 9 results out of 315)

origin: com.aol.cyclops/cyclops-core

/**
 * Reverse a Stream
 * 
 * @param stream Stream to reverse
 * @return Reversed stream
 */
public static <U> Stream<U> reverse(Stream<U> stream){
  return StreamUtils.reverse(stream);
}
/**
origin: com.aol.cyclops/cyclops-base

/**
 * 
 * 
 * @param reducer Use supplied Monoid to reduce values starting via foldRight
 * @return Reduced result
 */
public final T foldRight(Monoid<T> reducer){
  return reducer.reduce(StreamUtils.reverse(monad));
}
/**
origin: com.aol.cyclops/cyclops-base

/**
 *  Attempt to map this Monad to the same type as the supplied Monoid (using mapToType on the monoid interface)
 * Then use Monoid to reduce values
 * 
 * @param reducer Monoid to reduce values
 * @return Reduce result
 */
public final <T> T foldRightMapToType(Monoid<T> reducer){
  return reducer.mapReduce(StreamUtils.reverse(monad));
}
/**
origin: com.aol.cyclops/cyclops-base

/**
 *  Attempt to map this Monad to the same type as the supplied Monoid (using mapToType on the monoid interface)
 * Then use Monoid to reduce values
 * 
 * @param reducer Monoid to reduce values
 * @return Reduce result
 */
public final static <T> T foldRightMapToType(Stream<T> stream,Monoid<T> reducer){
  return reducer.mapReduce(StreamUtils.reverse(stream));
}
/**
origin: com.aol.cyclops/cyclops-streams

/**
 * 
 * 
 * @param reducer Use supplied Monoid to reduce values starting via foldRight
 * @return Reduced result
 */
public final static <T> T foldRight(Stream<T> stream,Monoid<T> reducer){
  return reducer.reduce(StreamUtils.reverse(stream));
}
/**
origin: com.aol.cyclops/cyclops-streams

/**
 *  Attempt to map this Monad to the same type as the supplied Monoid (using mapToType on the monoid interface)
 * Then use Monoid to reduce values
 * 
 * @param reducer Monoid to reduce values
 * @return Reduce result
 */
public final static <T> T foldRightMapToType(Stream<T> stream,Monoid<T> reducer){
  return reducer.mapReduce(StreamUtils.reverse(stream));
}
/**
origin: com.aol.cyclops/cyclops-base

/**
 * 
 * 
 * @param reducer Use supplied Monoid to reduce values starting via foldRight
 * @return Reduced result
 */
public final static <T> T foldRight(Stream<T> stream,Monoid<T> reducer){
  return reducer.reduce(StreamUtils.reverse(stream));
}
/**
origin: com.aol.cyclops/cyclops-base

public SequenceM<T> reverse(){
  return new SequenceM(StreamUtils.reverse(monad));
}

origin: com.aol.cyclops/cyclops-streams

public SequenceM<T> reverse(){
  if(reversable.isPresent()){
    reversable.ifPresent(r->r.invert());
    return this;
  }
  return StreamUtils.sequenceM(StreamUtils.reverse(stream),reversable);
}

com.aol.cyclops.streamsStreamUtilsreverse

Javadoc

Reverse a Stream
 
 

Popular methods of StreamUtils

  • cycle
    Convert to a Stream with the result of a reduction operation repeated specified times
  • stream
  • collect
    Apply multiple Collectors, simultaneously to a Stream
  • reduce
    Simultanously reduce a stream with multiple reducers
  • reversedStream
    Create a reversed Stream from a List
  • completableFutureToStream
  • concat
    Concat an Object and a Stream If the Object is a Stream, Streamable or Iterable will be converted (o
  • forEachEvent
    Perform a forEach operation over the Stream capturing any elements and errors in the supplied consum
  • forEachWithError
    Perform a forEach operation over the Stream capturing any elements and errors in the supplied consum
  • forEachX
    Perform a forEach operation over the Stream, without closing it, consuming only the specified number
  • forEachXEvents
    Perform a forEach operation over the Stream without closing it, capturing any elements and errors in
  • forEachXWithError
    Perform a forEach operation over the Stream without closing it, capturing any elements and errors in
  • forEachXEvents,
  • forEachXWithError,
  • headAndTail,
  • headAndTailOptional,
  • join,
  • limitUntil,
  • limitWhile,
  • max,
  • maxBy

Popular in Java

  • Reading from database using SQL prepared statement
  • getResourceAsStream (ClassLoader)
  • setRequestProperty (URLConnection)
  • requestLocationUpdates (LocationManager)
  • Window (java.awt)
    A Window object is a top-level window with no borders and no menubar. The default layout for a windo
  • InputStream (java.io)
    A readable source of bytes.Most clients will use input streams that read data from the file system (
  • NumberFormat (java.text)
    The abstract base class for all number formats. This class provides the interface for formatting and
  • Arrays (java.util)
    This class contains various methods for manipulating arrays (such as sorting and searching). This cl
  • BitSet (java.util)
    The BitSet class implements abit array [http://en.wikipedia.org/wiki/Bit_array]. Each element is eit
  • JCheckBox (javax.swing)
  • Top plugins for Android Studio
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