Examples of plus()


Examples of org.gradle.api.file.FileCollection.plus()

    public FileCollection getSourcePaths()
    {
        FileCollection collection = getProject().files(new Object[] {});
       
        for (DelayedFile file : sourcePaths)
            collection = collection.plus(getProject().files(file));
               
        return collection;
    }

    public boolean isIncludeEmptyDirs()

Examples of org.gradle.internal.classpath.ClassPath.plus()

    public ClassPath findClassPath(String name) {
        if (name.equals("GRADLE_RUNTIME")) {
            ClassPath classpath = new DefaultClassPath();
            for (Module module : moduleRegistry.getModule("gradle-launcher").getAllRequiredModules()) {
                classpath = classpath.plus(module.getClasspath());
            }
            return classpath;
        }
        if (name.equals("GRADLE_CORE")) {
            return moduleRegistry.getModule("gradle-core").getImplementationClasspath();

Examples of org.gradle.internal.classpath.DefaultClassPath.plus()

    public ClassPath findClassPath(String name) {
        if (name.equals("GRADLE_RUNTIME")) {
            ClassPath classpath = new DefaultClassPath();
            for (Module module : moduleRegistry.getModule("gradle-launcher").getAllRequiredModules()) {
                classpath = classpath.plus(module.getClasspath());
            }
            return classpath;
        }
        if (name.equals("GRADLE_CORE")) {
            return moduleRegistry.getModule("gradle-core").getImplementationClasspath();

Examples of org.joda.money.BigMoney.plus()

    // TODO Allow for currency conversion
    BigMoney deliveryTotal = MoneyUtils.parseBitcoin("BTC 0.0000");
    BigMoney taxTotal = MoneyUtils.parseBitcoin("BTC 0.0000");
    for (DeliveryItem deliveryItem: delivery.getDeliveryItems()) {
      deliveryTotal = deliveryTotal.plus(deliveryItem.getPriceSubtotal());
      taxTotal = taxTotal.plus(deliveryItem.getTaxSubtotal());
    }

    // Create top-level resource
    Representation deliveryRepresentation = new DefaultRepresentationFactory()
      .newRepresentation(basePath)

Examples of org.joda.time.DateMidnight.plus()

        dates = new ArrayList<DateMidnight>();
        while (current.isBefore(end))
        {
            dates.add(current);
            current = current.plus(weekly.getPeriod());
        }
        dates.add(end);
    }

    public Control createControl(Composite container)

Examples of org.joda.time.DateTime.plus()

                    session.execute(updateNewIndex.bind(newBucket, partition, time.toDate(), scheduleId));
                }
            }
            if (count < PAGE_SIZE) {
                time = time.plus(timeSlice);
                if (time.equals(day.plus(Days.ONE.toStandardDuration()))) {
                    day = day.plusDays(1);
                }
                statement = find412IndexEntries.bind(oldBucket, day.toDate(), time.toDate());
            } else {
                statement = find412IndexEntriesAfterScheduleId.bind(oldBucket, day.toDate(), time.toDate(),

Examples of org.joda.time.DateTime.plus()

public class TimeDateUtils {

    public static String getDataNextMesi(int numeroMesi) {
        DateTime now = new DateTime();
        ReadablePeriod noUpdatePeriod = new Period().withMonths(numeroMesi);
        return now.plus(noUpdatePeriod).toString();
    }

    public static String getDataNextMesiFormattata(int numeroMesi, String regexp) {
        DateTime now = new DateTime();
        ReadablePeriod noUpdatePeriod = new Period().withMonths(numeroMesi);

Examples of org.joda.time.DateTime.plus()

    }

    public static String getDataNextMesiFormattata(int numeroMesi, String regexp) {
        DateTime now = new DateTime();
        ReadablePeriod noUpdatePeriod = new Period().withMonths(numeroMesi);
        return new SimpleDateFormat(regexp).format(now.plus(noUpdatePeriod).toDate());
    }

    public static String getDataPreviousMesi(int numeroMesi) {
        DateTime now = new DateTime();
        ReadablePeriod noUpdatePeriod = new Period().withMonths(numeroMesi);

Examples of org.joda.time.DateTime.plus()

   
    DateTime now = DateTime.now();
    SimpleDateFormat fmt = GlobalSettings.createHunDateFormatter();
    service.create("TodoTask description " + fmt.format(now.toDate()));
    monitor.setLastRun(now.toDate());
    monitor.setNextRun(now.plus(monitor.getInterval()).toDate());
    logger.info("TodoTask executed at " + fmt.format(monitor.getLastRun()) + " and will execute at "
        + fmt.format(monitor.getNextRun()));
  }
}

Examples of org.joda.time.DateTime.plus()

  }
 
  private void schedule() {
    DateTime startTime = this.lastRun == null ? DateTime.now() : new DateTime(this.lastRun);
    this.pluginScheduler.scheduleJob(JOB_NAME, TodoTask.class, this.jobDataMap, startTime.toDate(), this.interval);
    this.setNextRun(startTime.plus(this.interval).toDate());
    logger.info(String.format("TodoMonitorImpl scheduled to run every %d ms", this.interval));
  }
 
  @Override
  public void setLastRun(Date lastRun) {
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.