Java Code Examples for java.time.Month#JUNE

The following examples show how to use java.time.Month#JUNE . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: StringColumnMonthMapper.java    From jadira with Apache License 2.0 6 votes vote down vote up
@Override
public Month fromNonNullValue(String s) {
	
	switch(s) {
		case "JANUARY" : return Month.JANUARY;
		case "FEBRUARY" : return Month.FEBRUARY;
		case "MARCH" : return Month.MARCH;
		case "APRIL" : return Month.APRIL;
		case "MAY" : return Month.MAY;
		case "JUNE" : return Month.JUNE;
		case "JULY" : return Month.JULY;
		case "AUGUST" : return Month.AUGUST;
		case "SEPTEMBER" : return Month.SEPTEMBER;
		case "OCTOBER" : return Month.OCTOBER;
		case "NOVEMBER" : return Month.NOVEMBER;
		case "DECEMBER" : return Month.DECEMBER;
		default: throw new IllegalArgumentException("Seen unexpected Month: " + s);
	}
}
 
Example 2
Source File: TCKMonth.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 5 votes vote down vote up
@DataProvider(name="query")
Object[][] data_query() {
    return new Object[][] {
            {Month.JUNE, TemporalQueries.chronology(), IsoChronology.INSTANCE},
            {Month.JUNE, TemporalQueries.zoneId(), null},
            {Month.JUNE, TemporalQueries.precision(), ChronoUnit.MONTHS},
            {Month.JUNE, TemporalQueries.zone(), null},
            {Month.JUNE, TemporalQueries.offset(), null},
            {Month.JUNE, TemporalQueries.localDate(), null},
            {Month.JUNE, TemporalQueries.localTime(), null},
    };
}
 
Example 3
Source File: TCKMonth.java    From j2objc with Apache License 2.0 5 votes vote down vote up
@DataProvider
public static Object[][] data_query() {
    return new Object[][] {
            {Month.JUNE, TemporalQueries.chronology(), IsoChronology.INSTANCE},
            {Month.JUNE, TemporalQueries.zoneId(), null},
            {Month.JUNE, TemporalQueries.precision(), ChronoUnit.MONTHS},
            {Month.JUNE, TemporalQueries.zone(), null},
            {Month.JUNE, TemporalQueries.offset(), null},
            {Month.JUNE, TemporalQueries.localDate(), null},
            {Month.JUNE, TemporalQueries.localTime(), null},
    };
}
 
Example 4
Source File: TCKMonth.java    From openjdk-8-source with GNU General Public License v2.0 5 votes vote down vote up
@DataProvider(name="query")
Object[][] data_query() {
    return new Object[][] {
            {Month.JUNE, TemporalQueries.chronology(), IsoChronology.INSTANCE},
            {Month.JUNE, TemporalQueries.zoneId(), null},
            {Month.JUNE, TemporalQueries.precision(), ChronoUnit.MONTHS},
            {Month.JUNE, TemporalQueries.zone(), null},
            {Month.JUNE, TemporalQueries.offset(), null},
            {Month.JUNE, TemporalQueries.localDate(), null},
            {Month.JUNE, TemporalQueries.localTime(), null},
    };
}
 
Example 5
Source File: TCKMonth.java    From hottub with GNU General Public License v2.0 5 votes vote down vote up
@DataProvider(name="query")
Object[][] data_query() {
    return new Object[][] {
            {Month.JUNE, TemporalQueries.chronology(), IsoChronology.INSTANCE},
            {Month.JUNE, TemporalQueries.zoneId(), null},
            {Month.JUNE, TemporalQueries.precision(), ChronoUnit.MONTHS},
            {Month.JUNE, TemporalQueries.zone(), null},
            {Month.JUNE, TemporalQueries.offset(), null},
            {Month.JUNE, TemporalQueries.localDate(), null},
            {Month.JUNE, TemporalQueries.localTime(), null},
    };
}
 
Example 6
Source File: TCKMonth.java    From jdk8u-dev-jdk with GNU General Public License v2.0 5 votes vote down vote up
@DataProvider(name="query")
Object[][] data_query() {
    return new Object[][] {
            {Month.JUNE, TemporalQueries.chronology(), IsoChronology.INSTANCE},
            {Month.JUNE, TemporalQueries.zoneId(), null},
            {Month.JUNE, TemporalQueries.precision(), ChronoUnit.MONTHS},
            {Month.JUNE, TemporalQueries.zone(), null},
            {Month.JUNE, TemporalQueries.offset(), null},
            {Month.JUNE, TemporalQueries.localDate(), null},
            {Month.JUNE, TemporalQueries.localTime(), null},
    };
}
 
Example 7
Source File: TCKMonth.java    From openjdk-jdk9 with GNU General Public License v2.0 5 votes vote down vote up
@DataProvider(name="query")
Object[][] data_query() {
    return new Object[][] {
            {Month.JUNE, TemporalQueries.chronology(), IsoChronology.INSTANCE},
            {Month.JUNE, TemporalQueries.zoneId(), null},
            {Month.JUNE, TemporalQueries.precision(), ChronoUnit.MONTHS},
            {Month.JUNE, TemporalQueries.zone(), null},
            {Month.JUNE, TemporalQueries.offset(), null},
            {Month.JUNE, TemporalQueries.localDate(), null},
            {Month.JUNE, TemporalQueries.localTime(), null},
    };
}
 
Example 8
Source File: MergeBotFactory.java    From skara with GNU General Public License v2.0 5 votes vote down vote up
private static Month toMonth(String s) {
    switch (s.toLowerCase()) {
        case "january":
            return Month.JANUARY;
        case "february":
            return Month.FEBRUARY;
        case "march":
            return Month.MARCH;
        case "april":
            return Month.APRIL;
        case "may":
            return Month.MAY;
        case "june":
            return Month.JUNE;
        case "july":
            return Month.JULY;
        case "august":
            return Month.AUGUST;
        case "september":
            return Month.SEPTEMBER;
        case "october":
            return Month.OCTOBER;
        case "november":
            return Month.NOVEMBER;
        case "december":
            return Month.DECEMBER;
        default:
            throw new IllegalArgumentException("Unknown month: " + s);
    }
}
 
Example 9
Source File: TCKMonth.java    From jdk8u60 with GNU General Public License v2.0 5 votes vote down vote up
@DataProvider(name="query")
Object[][] data_query() {
    return new Object[][] {
            {Month.JUNE, TemporalQueries.chronology(), IsoChronology.INSTANCE},
            {Month.JUNE, TemporalQueries.zoneId(), null},
            {Month.JUNE, TemporalQueries.precision(), ChronoUnit.MONTHS},
            {Month.JUNE, TemporalQueries.zone(), null},
            {Month.JUNE, TemporalQueries.offset(), null},
            {Month.JUNE, TemporalQueries.localDate(), null},
            {Month.JUNE, TemporalQueries.localTime(), null},
    };
}
 
Example 10
Source File: TCKMonth.java    From TencentKona-8 with GNU General Public License v2.0 5 votes vote down vote up
@DataProvider(name="query")
Object[][] data_query() {
    return new Object[][] {
            {Month.JUNE, TemporalQueries.chronology(), IsoChronology.INSTANCE},
            {Month.JUNE, TemporalQueries.zoneId(), null},
            {Month.JUNE, TemporalQueries.precision(), ChronoUnit.MONTHS},
            {Month.JUNE, TemporalQueries.zone(), null},
            {Month.JUNE, TemporalQueries.offset(), null},
            {Month.JUNE, TemporalQueries.localDate(), null},
            {Month.JUNE, TemporalQueries.localTime(), null},
    };
}
 
Example 11
Source File: TCKMonth.java    From jdk8u-jdk with GNU General Public License v2.0 4 votes vote down vote up
@Override
protected List<TemporalAccessor> samples() {
    TemporalAccessor[] array = {Month.JANUARY, Month.JUNE, Month.DECEMBER, };
    return Arrays.asList(array);
}
 
Example 12
Source File: TCKMonth.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 4 votes vote down vote up
@Override
protected List<TemporalAccessor> samples() {
    TemporalAccessor[] array = {Month.JANUARY, Month.JUNE, Month.DECEMBER, };
    return Arrays.asList(array);
}
 
Example 13
Source File: TCKMonth.java    From openjdk-jdk9 with GNU General Public License v2.0 4 votes vote down vote up
@Override
protected List<TemporalAccessor> samples() {
    TemporalAccessor[] array = {Month.JANUARY, Month.JUNE, Month.DECEMBER, };
    return Arrays.asList(array);
}
 
Example 14
Source File: TCKMonth.java    From jdk8u60 with GNU General Public License v2.0 4 votes vote down vote up
@Override
protected List<TemporalAccessor> samples() {
    TemporalAccessor[] array = {Month.JANUARY, Month.JUNE, Month.DECEMBER, };
    return Arrays.asList(array);
}
 
Example 15
Source File: PackedLocalDateTime.java    From tablesaw with Apache License 2.0 4 votes vote down vote up
public static boolean isInJune(long packedDateTime) {
  return (packedDateTime != missingValueIndicator()) && getMonth(packedDateTime) == Month.JUNE;
}
 
Example 16
Source File: PackedLocalDateTime.java    From tablesaw with Apache License 2.0 4 votes vote down vote up
public static boolean isInJune(long packedDateTime) {
  return (packedDateTime != missingValueIndicator()) && getMonth(packedDateTime) == Month.JUNE;
}
 
Example 17
Source File: TCKMonth.java    From TencentKona-8 with GNU General Public License v2.0 4 votes vote down vote up
@Override
protected List<TemporalAccessor> samples() {
    TemporalAccessor[] array = {Month.JANUARY, Month.JUNE, Month.DECEMBER, };
    return Arrays.asList(array);
}
 
Example 18
Source File: TCKMonth.java    From openjdk-8-source with GNU General Public License v2.0 4 votes vote down vote up
@Override
protected List<TemporalAccessor> samples() {
    TemporalAccessor[] array = {Month.JANUARY, Month.JUNE, Month.DECEMBER, };
    return Arrays.asList(array);
}
 
Example 19
Source File: TCKMonth.java    From jdk8u-dev-jdk with GNU General Public License v2.0 4 votes vote down vote up
@Override
protected List<TemporalAccessor> samples() {
    TemporalAccessor[] array = {Month.JANUARY, Month.JUNE, Month.DECEMBER, };
    return Arrays.asList(array);
}
 
Example 20
Source File: TCKMonth.java    From dragonwell8_jdk with GNU General Public License v2.0 4 votes vote down vote up
@Override
protected List<TemporalAccessor> samples() {
    TemporalAccessor[] array = {Month.JANUARY, Month.JUNE, Month.DECEMBER, };
    return Arrays.asList(array);
}