Tabnine Logo
ProjectRegistry$JobEventFinder.stream
Code IndexAdd Tabnine to your IDE (free)

How to use
stream
method
in
it.tidalwave.accounting.model.ProjectRegistry$JobEventFinder

Best Java code snippets using it.tidalwave.accounting.model.ProjectRegistry$JobEventFinder.stream (Showing top 4 results out of 315)

origin: it.tidalwave.accounting/it-tidalwave-accounting-ui-jobeventexplorer

@Override @Nonnull
public PresentationModel createPresentationModel (final @Nonnull Object... instanceRoles)
 {
  final Styleable styleable = new DefaultStyleable(getStyles());
  return jobEvent.findChildren()
          .stream()
          .map(jobEvent -> (JobEventSpi)jobEvent)
          .sorted(comparing(JobEventSpi::getDateTime))
          .map(jobEvent -> jobEvent.as(Presentable).createPresentationModel())
          .collect(toCompositePresentationModel(aggregateBuilder().create(), styleable));
  // FIXME: use SimpleCompositePresentable?
 }
origin: it.tidalwave.accounting/it-tidalwave-accounting-ui-jobeventexplorer

 /*******************************************************************************************************************
  *
  * Reacts to the notification that a {@link Project} has been selected by populating the presentation with
  * its job events.
  * 
  * @param  event  the notification event
  *
  ******************************************************************************************************************/
 @VisibleForTesting void onProjectSelectedEvent (final @Nonnull @ListensTo ProjectSelectedEvent event)
  {
   log.info("onProjectSelectedEvent({})", event);
   presentation.populate(event.getProject().findChildren()
                       .stream()
                       .map(jobEvent -> (JobEventSpi)jobEvent)
                       .sorted(comparing(JobEventSpi::getDateTime))
                       .map(jobEvent -> jobEvent.as(Presentable).createPresentationModel())
                       .collect(toCompositePresentationModel()));
  }
}
origin: it.tidalwave.accounting/it-tidalwave-accounting-marshalling-xml

public ProjectXml (final @Nonnull Project project)
 {
  final Project.Builder builder = project.toBuilder();
  this.id = builder.getId();
  this.customerXml = new CustomerXml(builder.getCustomer());
  this.name = builder.getName();
  this.number = builder.getNumber();
  this.description = builder.getDescription();
  this.notes = builder.getNotes();
  this.status = builder.getStatus();
  this.hourlyRate = builder.getHourlyRate();
  this.budget = builder.getBudget();
  this.startDate = builder.getStartDate();
  this.endDate = builder.getEndDate();
  this.jobEventsXml = project.findChildren().stream().map(jobEvent -> new JobEventXml(jobEvent)).collect(toList());
 }

origin: it.tidalwave.accounting/it-tidalwave-accounting-importer-ibiz

final Stream<Id> eventIds = configuration.getIds("jobEventIDs").stream();
final List<JobEvent> events = eventIds.flatMap(id -> projectRegistry.findJobEvents().withId(id).stream())
                   .collect(toList());
it.tidalwave.accounting.modelProjectRegistry$JobEventFinderstream

Popular methods of ProjectRegistry$JobEventFinder

  • results
  • count
  • firstResult
  • withId

Popular in Java

  • Making http post requests using okhttp
  • scheduleAtFixedRate (Timer)
  • addToBackStack (FragmentTransaction)
  • putExtra (Intent)
  • BufferedReader (java.io)
    Wraps an existing Reader and buffers the input. Expensive interaction with the underlying reader is
  • Thread (java.lang)
    A thread is a thread of execution in a program. The Java Virtual Machine allows an application to ha
  • BitSet (java.util)
    The BitSet class implements abit array [http://en.wikipedia.org/wiki/Bit_array]. Each element is eit
  • Collection (java.util)
    Collection is the root of the collection hierarchy. It defines operations on data collections and t
  • PriorityQueue (java.util)
    A PriorityQueue holds elements on a priority heap, which orders the elements according to their natu
  • StringUtils (org.apache.commons.lang)
    Operations on java.lang.String that arenull safe. * IsEmpty/IsBlank - checks if a String contains
  • 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