Tabnine Logo
TupleWrapper.values
Code IndexAdd Tabnine to your IDE (free)

How to use
values
method
in
com.aol.cyclops.lambda.api.TupleWrapper

Best Java code snippets using com.aol.cyclops.lambda.api.TupleWrapper.values (Showing top 3 results out of 315)

origin: com.aol.cyclops/cyclops-core

private TupleImpl(Object tuple,OptionalInt arity){
  this.instance = tuple;
  if(tuple instanceof Collection)
    cachedValues = new ArrayList( ((List)tuple));
  else if(tuple instanceof Map){
    cachedValues = new ArrayList( ((Map)tuple).entrySet());
  }
  else if(tuple instanceof Stream){
    cachedValues = (List)((Stream)tuple).collect(Collectors.toList());
  }
  else if(tuple instanceof Iterable){
    cachedValues=  loadFromIterable((Iterable)tuple);
  }
  else if(tuple instanceof Iterator){
    cachedValues=  loadFromIterator((Iterator)tuple);
  }
  else if(tuple!=null && tuple.getClass().isArray()){
    cachedValues=  Arrays.asList((Object[]) tuple);
  }
  else
    cachedValues = ((TupleWrapper) ()-> tuple).values();
      
  
  this.arity = arity.orElse(cachedValues.size());
}

origin: com.aol.cyclops/cyclops-tuples

private TupleImpl(Object tuple,OptionalInt arity){
  this.instance = tuple;
  if(tuple instanceof Collection)
    cachedValues = new ArrayList( ((List)tuple));
  else if(tuple instanceof Map){
    cachedValues = new ArrayList( ((Map)tuple).entrySet());
  }
  else if(tuple instanceof Stream){
    cachedValues = (List)((Stream)tuple).collect(Collectors.toList());
  }
  else if(tuple instanceof Iterable){
    cachedValues=  loadFromIterable((Iterable)tuple);
  }
  else if(tuple instanceof Iterator){
    cachedValues=  loadFromIterator((Iterator)tuple);
  }
  else if(tuple!=null && tuple.getClass().isArray()){
    cachedValues=  Arrays.asList((Object[]) tuple);
  }
  else
    cachedValues = ((TupleWrapper) ()-> tuple).values();
      
  this.arity = arity.orElse(cachedValues.size());
}

origin: com.aol.cyclops/cyclops-streams

public static <K,V> Monoid<PMap<K,V>> toPMap() { 
  return	Monoid.<PMap<K,V>>of(HashTreePMap.empty(), 
              (PMap<K,V> a) -> b -> a.plusAll(b),
              (in)-> {
                List w = ((TupleWrapper) ()-> in).values();
                return HashTreePMap.singleton((K)w.get(0), (V)w.get(1));
              });
}

com.aol.cyclops.lambda.apiTupleWrappervalues

Popular methods of TupleWrapper

  • getInstance

Popular in Java

  • Making http requests using okhttp
  • requestLocationUpdates (LocationManager)
  • setContentView (Activity)
  • findViewById (Activity)
  • String (java.lang)
  • Comparator (java.util)
    A Comparator is used to compare two objects to determine their ordering with respect to each other.
  • Executor (java.util.concurrent)
    An object that executes submitted Runnable tasks. This interface provides a way of decoupling task s
  • JButton (javax.swing)
  • JFrame (javax.swing)
  • Table (org.hibernate.mapping)
    A relational table
  • 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