Examples of PeriodType


Examples of com.facebook.presto.jdbc.internal.joda.time.PeriodType

        /**
         * @return Long.MAX_VALUE if nothing to print, otherwise value
         */
        long getFieldValue(ReadablePeriod period) {
            PeriodType type;
            if (iPrintZeroSetting == PRINT_ZERO_ALWAYS) {
                type = null; // Don't need to check if supported.
            } else {
                type = period.getPeriodType();
            }
View Full Code Here

Examples of com.facebook.presto.jdbc.internal.joda.time.PeriodType

        /**
         * @return Long.MAX_VALUE if nothing to print, otherwise value
         */
        long getFieldValue(ReadablePeriod period) {
            PeriodType type;
            if (iPrintZeroSetting == PRINT_ZERO_ALWAYS) {
                type = null; // Don't need to check if supported.
            } else {
                type = period.getPeriodType();
            }
View Full Code Here

Examples of org.goda.time.PeriodType

        /**
         * @return Long.MAX_VALUE if nothing to print, otherwise value
         */
        long getFieldValue(ReadablePeriod period) {
            PeriodType type;
            if (iPrintZeroSetting == PRINT_ZERO_ALWAYS) {
                type = null; // Don't need to check if supported.
            } else {
                type = period.getPeriodType();
            }
View Full Code Here

Examples of org.goda.time.PeriodType

        /**
         * @return Long.MAX_VALUE if nothing to print, otherwise value
         */
        long getFieldValue(ReadablePeriod period) {
            PeriodType type;
            if (iPrintZeroSetting == PRINT_ZERO_ALWAYS) {
                type = null; // Don't need to check if supported.
            } else {
                type = period.getPeriodType();
            }
View Full Code Here

Examples of org.joda.time.PeriodType

        /**
         * @return Long.MAX_VALUE if nothing to print, otherwise value
         */
        long getFieldValue(ReadablePeriod period) {
            PeriodType type;
            if (iPrintZeroSetting == PRINT_ZERO_ALWAYS) {
                type = null; // Don't need to check if supported.
            } else {
                type = period.getPeriodType();
            }
View Full Code Here

Examples of org.joda.time.PeriodType

        /**
         * @return Long.MAX_VALUE if nothing to print, otherwise value
         */
        long getFieldValue(ReadablePeriod period) {
            PeriodType type;
            if (iPrintZeroSetting == PRINT_ZERO_ALWAYS) {
                type = null; // Don't need to check if supported.
            } else {
                type = period.getPeriodType();
            }
View Full Code Here

Examples of org.joda.time.PeriodType

        List<DurationFieldType> result = new ArrayList<DurationFieldType>();
        if (getIncludedFields() == null) {
            result.add(DurationFieldType.hours());
            result.add(DurationFieldType.minutes());
        } else {
            PeriodType standard = PeriodType.standard();
            for (int index = 0; index < standard.size(); index++) {
                if (getIncludedFields().contains(standard.getFieldType(index).getName())) {
                    result.add(standard.getFieldType(index));
                }
            }
        }
        return result.toArray(new DurationFieldType[] {});
    }
View Full Code Here

Examples of org.joda.time.PeriodType

            StringBuilder result = new StringBuilder();
            if (object != null) {
                Duration duration = (Duration) object;
                PeriodFormatterBuilder periodFormatterBuilder = new PeriodFormatterBuilder();

                PeriodType periodType = PeriodType.forFields(getDurationFieldTypes());

                if (printZeroAlways) {
                    periodFormatterBuilder.printZeroAlways();
                }
                if (duration.getMillis() < 0) {
View Full Code Here

Examples of org.joda.time.PeriodType

        return isSameAsRepaymentPeriod;
    }

    private Integer getPeriodsBetween(LocalDate fromDate, LocalDate toDate) {
        Integer numberOfPeriods = 0;
        PeriodType periodType = PeriodType.yearMonthDay();
        Period difference = new Period(fromDate, toDate, periodType);
        switch (this.repaymentPeriodFrequencyType) {
            case DAYS:
                numberOfPeriods = difference.getDays();
            break;
View Full Code Here

Examples of org.joda.time.PeriodType

        /**
         * @return Long.MAX_VALUE if nothing to print, otherwise value
         */
        long getFieldValue(ReadablePeriod period) {
            PeriodType type;
            if (iPrintZeroSetting == PRINT_ZERO_ALWAYS) {
                type = null; // Don't need to check if supported.
            } else {
                type = period.getPeriodType();
            }
View Full Code Here
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.