Java Code Examples for java.time.Month#OCTOBER
The following examples show how to use
java.time.Month#OCTOBER .
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 |
@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: MergeBotFactory.java From skara with GNU General Public License v2.0 | 5 votes |
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 3
Source File: PackedLocalDateTime.java From tablesaw with Apache License 2.0 | 4 votes |
public static boolean isInQ4(long packedDateTime) { if (packedDateTime == missingValueIndicator()) return false; Month month = getMonth(packedDateTime); return month == Month.OCTOBER || month == Month.NOVEMBER || month == Month.DECEMBER; }
Example 4
Source File: PackedLocalDateTime.java From tablesaw with Apache License 2.0 | 4 votes |
public static boolean isInOctober(long packedDateTime) { return (packedDateTime != missingValueIndicator()) && getMonth(packedDateTime) == Month.OCTOBER; }
Example 5
Source File: PackedLocalDateTime.java From tablesaw with Apache License 2.0 | 4 votes |
public static boolean isInQ4(long packedDateTime) { if (packedDateTime == missingValueIndicator()) return false; Month month = getMonth(packedDateTime); return month == Month.OCTOBER || month == Month.NOVEMBER || month == Month.DECEMBER; }
Example 6
Source File: PackedLocalDateTime.java From tablesaw with Apache License 2.0 | 4 votes |
public static boolean isInOctober(long packedDateTime) { return (packedDateTime != missingValueIndicator()) && getMonth(packedDateTime) == Month.OCTOBER; }