Java Code Examples for java.time.DayOfWeek#FRIDAY
The following examples show how to use
java.time.DayOfWeek#FRIDAY .
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: TCKWeekFields.java From openjdk-jdk8u with GNU General Public License v2.0 | 6 votes |
@DataProvider(name="IsoWeekData") Object[][] data_week() { return new Object[][] { {LocalDate.of(1969, 12, 29), DayOfWeek.MONDAY, 1, 1970}, {LocalDate.of(2012, 12, 23), DayOfWeek.SUNDAY, 51, 2012}, {LocalDate.of(2012, 12, 24), DayOfWeek.MONDAY, 52, 2012}, {LocalDate.of(2012, 12, 27), DayOfWeek.THURSDAY, 52, 2012}, {LocalDate.of(2012, 12, 28), DayOfWeek.FRIDAY, 52, 2012}, {LocalDate.of(2012, 12, 29), DayOfWeek.SATURDAY, 52, 2012}, {LocalDate.of(2012, 12, 30), DayOfWeek.SUNDAY, 52, 2012}, {LocalDate.of(2012, 12, 31), DayOfWeek.MONDAY, 1, 2013}, {LocalDate.of(2013, 1, 1), DayOfWeek.TUESDAY, 1, 2013}, {LocalDate.of(2013, 1, 2), DayOfWeek.WEDNESDAY, 1, 2013}, {LocalDate.of(2013, 1, 6), DayOfWeek.SUNDAY, 1, 2013}, {LocalDate.of(2013, 1, 7), DayOfWeek.MONDAY, 2, 2013}, }; }
Example 2
Source File: TCKWeekFields.java From jdk8u-jdk with GNU General Public License v2.0 | 6 votes |
@DataProvider(name="IsoWeekData") Object[][] data_week() { return new Object[][] { {LocalDate.of(1969, 12, 29), DayOfWeek.MONDAY, 1, 1970}, {LocalDate.of(2012, 12, 23), DayOfWeek.SUNDAY, 51, 2012}, {LocalDate.of(2012, 12, 24), DayOfWeek.MONDAY, 52, 2012}, {LocalDate.of(2012, 12, 27), DayOfWeek.THURSDAY, 52, 2012}, {LocalDate.of(2012, 12, 28), DayOfWeek.FRIDAY, 52, 2012}, {LocalDate.of(2012, 12, 29), DayOfWeek.SATURDAY, 52, 2012}, {LocalDate.of(2012, 12, 30), DayOfWeek.SUNDAY, 52, 2012}, {LocalDate.of(2012, 12, 31), DayOfWeek.MONDAY, 1, 2013}, {LocalDate.of(2013, 1, 1), DayOfWeek.TUESDAY, 1, 2013}, {LocalDate.of(2013, 1, 2), DayOfWeek.WEDNESDAY, 1, 2013}, {LocalDate.of(2013, 1, 6), DayOfWeek.SUNDAY, 1, 2013}, {LocalDate.of(2013, 1, 7), DayOfWeek.MONDAY, 2, 2013}, }; }
Example 3
Source File: TCKWeekFields.java From TencentKona-8 with GNU General Public License v2.0 | 6 votes |
@DataProvider(name="IsoWeekData") Object[][] data_week() { return new Object[][] { {LocalDate.of(1969, 12, 29), DayOfWeek.MONDAY, 1, 1970}, {LocalDate.of(2012, 12, 23), DayOfWeek.SUNDAY, 51, 2012}, {LocalDate.of(2012, 12, 24), DayOfWeek.MONDAY, 52, 2012}, {LocalDate.of(2012, 12, 27), DayOfWeek.THURSDAY, 52, 2012}, {LocalDate.of(2012, 12, 28), DayOfWeek.FRIDAY, 52, 2012}, {LocalDate.of(2012, 12, 29), DayOfWeek.SATURDAY, 52, 2012}, {LocalDate.of(2012, 12, 30), DayOfWeek.SUNDAY, 52, 2012}, {LocalDate.of(2012, 12, 31), DayOfWeek.MONDAY, 1, 2013}, {LocalDate.of(2013, 1, 1), DayOfWeek.TUESDAY, 1, 2013}, {LocalDate.of(2013, 1, 2), DayOfWeek.WEDNESDAY, 1, 2013}, {LocalDate.of(2013, 1, 6), DayOfWeek.SUNDAY, 1, 2013}, {LocalDate.of(2013, 1, 7), DayOfWeek.MONDAY, 2, 2013}, }; }
Example 4
Source File: TCKWeekFields.java From hottub with GNU General Public License v2.0 | 6 votes |
@DataProvider(name="IsoWeekData") Object[][] data_week() { return new Object[][] { {LocalDate.of(1969, 12, 29), DayOfWeek.MONDAY, 1, 1970}, {LocalDate.of(2012, 12, 23), DayOfWeek.SUNDAY, 51, 2012}, {LocalDate.of(2012, 12, 24), DayOfWeek.MONDAY, 52, 2012}, {LocalDate.of(2012, 12, 27), DayOfWeek.THURSDAY, 52, 2012}, {LocalDate.of(2012, 12, 28), DayOfWeek.FRIDAY, 52, 2012}, {LocalDate.of(2012, 12, 29), DayOfWeek.SATURDAY, 52, 2012}, {LocalDate.of(2012, 12, 30), DayOfWeek.SUNDAY, 52, 2012}, {LocalDate.of(2012, 12, 31), DayOfWeek.MONDAY, 1, 2013}, {LocalDate.of(2013, 1, 1), DayOfWeek.TUESDAY, 1, 2013}, {LocalDate.of(2013, 1, 2), DayOfWeek.WEDNESDAY, 1, 2013}, {LocalDate.of(2013, 1, 6), DayOfWeek.SUNDAY, 1, 2013}, {LocalDate.of(2013, 1, 7), DayOfWeek.MONDAY, 2, 2013}, }; }
Example 5
Source File: TCKWeekFields.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 6 votes |
@DataProvider(name="IsoWeekData") Object[][] data_week() { return new Object[][] { {LocalDate.of(1969, 12, 29), DayOfWeek.MONDAY, 1, 1970}, {LocalDate.of(2012, 12, 23), DayOfWeek.SUNDAY, 51, 2012}, {LocalDate.of(2012, 12, 24), DayOfWeek.MONDAY, 52, 2012}, {LocalDate.of(2012, 12, 27), DayOfWeek.THURSDAY, 52, 2012}, {LocalDate.of(2012, 12, 28), DayOfWeek.FRIDAY, 52, 2012}, {LocalDate.of(2012, 12, 29), DayOfWeek.SATURDAY, 52, 2012}, {LocalDate.of(2012, 12, 30), DayOfWeek.SUNDAY, 52, 2012}, {LocalDate.of(2012, 12, 31), DayOfWeek.MONDAY, 1, 2013}, {LocalDate.of(2013, 1, 1), DayOfWeek.TUESDAY, 1, 2013}, {LocalDate.of(2013, 1, 2), DayOfWeek.WEDNESDAY, 1, 2013}, {LocalDate.of(2013, 1, 6), DayOfWeek.SUNDAY, 1, 2013}, {LocalDate.of(2013, 1, 7), DayOfWeek.MONDAY, 2, 2013}, }; }
Example 6
Source File: TCKDayOfWeek.java From hottub with GNU General Public License v2.0 | 5 votes |
@DataProvider(name="query") Object[][] data_query() { return new Object[][] { {DayOfWeek.FRIDAY, TemporalQueries.chronology(), null}, {DayOfWeek.FRIDAY, TemporalQueries.zoneId(), null}, {DayOfWeek.FRIDAY, TemporalQueries.precision(), ChronoUnit.DAYS}, {DayOfWeek.FRIDAY, TemporalQueries.zone(), null}, {DayOfWeek.FRIDAY, TemporalQueries.offset(), null}, {DayOfWeek.FRIDAY, TemporalQueries.localDate(), null}, {DayOfWeek.FRIDAY, TemporalQueries.localTime(), null}, }; }
Example 7
Source File: TCKDayOfWeek.java From TencentKona-8 with GNU General Public License v2.0 | 5 votes |
@DataProvider(name="query") Object[][] data_query() { return new Object[][] { {DayOfWeek.FRIDAY, TemporalQueries.chronology(), null}, {DayOfWeek.FRIDAY, TemporalQueries.zoneId(), null}, {DayOfWeek.FRIDAY, TemporalQueries.precision(), ChronoUnit.DAYS}, {DayOfWeek.FRIDAY, TemporalQueries.zone(), null}, {DayOfWeek.FRIDAY, TemporalQueries.offset(), null}, {DayOfWeek.FRIDAY, TemporalQueries.localDate(), null}, {DayOfWeek.FRIDAY, TemporalQueries.localTime(), null}, }; }
Example 8
Source File: TCKDayOfWeek.java From jdk8u60 with GNU General Public License v2.0 | 5 votes |
@DataProvider(name="query") Object[][] data_query() { return new Object[][] { {DayOfWeek.FRIDAY, TemporalQueries.chronology(), null}, {DayOfWeek.FRIDAY, TemporalQueries.zoneId(), null}, {DayOfWeek.FRIDAY, TemporalQueries.precision(), ChronoUnit.DAYS}, {DayOfWeek.FRIDAY, TemporalQueries.zone(), null}, {DayOfWeek.FRIDAY, TemporalQueries.offset(), null}, {DayOfWeek.FRIDAY, TemporalQueries.localDate(), null}, {DayOfWeek.FRIDAY, TemporalQueries.localTime(), null}, }; }
Example 9
Source File: TCKDayOfWeek.java From openjdk-8 with GNU General Public License v2.0 | 5 votes |
@DataProvider(name="query") Object[][] data_query() { return new Object[][] { {DayOfWeek.FRIDAY, TemporalQueries.chronology(), null}, {DayOfWeek.FRIDAY, TemporalQueries.zoneId(), null}, {DayOfWeek.FRIDAY, TemporalQueries.precision(), ChronoUnit.DAYS}, {DayOfWeek.FRIDAY, TemporalQueries.zone(), null}, {DayOfWeek.FRIDAY, TemporalQueries.offset(), null}, {DayOfWeek.FRIDAY, TemporalQueries.localDate(), null}, {DayOfWeek.FRIDAY, TemporalQueries.localTime(), null}, }; }
Example 10
Source File: TCKDayOfWeek.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 5 votes |
@DataProvider(name="query") Object[][] data_query() { return new Object[][] { {DayOfWeek.FRIDAY, TemporalQueries.chronology(), null}, {DayOfWeek.FRIDAY, TemporalQueries.zoneId(), null}, {DayOfWeek.FRIDAY, TemporalQueries.precision(), ChronoUnit.DAYS}, {DayOfWeek.FRIDAY, TemporalQueries.zone(), null}, {DayOfWeek.FRIDAY, TemporalQueries.offset(), null}, {DayOfWeek.FRIDAY, TemporalQueries.localDate(), null}, {DayOfWeek.FRIDAY, TemporalQueries.localTime(), null}, }; }
Example 11
Source File: TimeSection.java From OEE-Designer with MIT License | 4 votes |
public TimeSection(final LocalTime START, final LocalTime STOP, final Color COLOR) { this(START, STOP, "", null, COLOR, COLOR, Color.TRANSPARENT, false, DayOfWeek.MONDAY, DayOfWeek.TUESDAY, DayOfWeek.WEDNESDAY, DayOfWeek.THURSDAY, DayOfWeek.FRIDAY, DayOfWeek.SATURDAY, DayOfWeek.SUNDAY); }
Example 12
Source File: TimeSection.java From tilesfx with Apache License 2.0 | 4 votes |
public TimeSection(final LocalTime START, final LocalTime STOP) { this(START, STOP, "", null, Color.TRANSPARENT, Color.TRANSPARENT, Color.TRANSPARENT, false, DayOfWeek.MONDAY, DayOfWeek.TUESDAY, DayOfWeek.WEDNESDAY, DayOfWeek.THURSDAY, DayOfWeek.FRIDAY, DayOfWeek.SATURDAY, DayOfWeek.SUNDAY); }
Example 13
Source File: PackedLocalDateTime.java From tablesaw with Apache License 2.0 | 4 votes |
public static boolean isFriday(long packedDateTime) { if (packedDateTime == missingValueIndicator()) return false; DayOfWeek dayOfWeek = getDayOfWeek(packedDateTime); return dayOfWeek == DayOfWeek.FRIDAY; }
Example 14
Source File: PackedLocalDateTime.java From tablesaw with Apache License 2.0 | 4 votes |
public static boolean isFriday(long packedDateTime) { if (packedDateTime == missingValueIndicator()) return false; DayOfWeek dayOfWeek = getDayOfWeek(packedDateTime); return dayOfWeek == DayOfWeek.FRIDAY; }
Example 15
Source File: TimeSection.java From tilesfx with Apache License 2.0 | 4 votes |
public TimeSection(final LocalTime START, final LocalTime STOP, final Color COLOR) { this(START, STOP, "", null, COLOR, COLOR, Color.TRANSPARENT, false, DayOfWeek.MONDAY, DayOfWeek.TUESDAY, DayOfWeek.WEDNESDAY, DayOfWeek.THURSDAY, DayOfWeek.FRIDAY, DayOfWeek.SATURDAY, DayOfWeek.SUNDAY); }
Example 16
Source File: TimeSection.java From OEE-Designer with MIT License | 4 votes |
public TimeSection(final LocalTime START, final LocalTime STOP, final String TEXT, final Color COLOR) { this(START, STOP, TEXT, null, COLOR, COLOR, Color.WHITE, false, DayOfWeek.MONDAY, DayOfWeek.TUESDAY, DayOfWeek.WEDNESDAY, DayOfWeek.THURSDAY, DayOfWeek.FRIDAY, DayOfWeek.SATURDAY, DayOfWeek.SUNDAY); }
Example 17
Source File: Chapter07Concurrency04.java From Java-11-Cookbook-Second-Edition with MIT License | 4 votes |
private static AverageSpeed createTask(){ DateLocation dateLocation = new DateLocation(Month.APRIL, DayOfWeek.FRIDAY, 17, "USA", "Denver", "Main103S"); return new AverageSpeed(dateLocation, 10, 1001, 100); }
Example 18
Source File: DateMatchers.java From elexis-3-core with Eclipse Public License 1.0 | 2 votes |
/** * Creates a matcher that matches when the examined date is on a friday * <p/> * For example: * * <pre> * assertThat(myDate, isFriday()); * </pre> */ public static Matcher<Date> isFriday() { return new IsDayOfWeek<Date>(DayOfWeek.FRIDAY, DateMatchers::dateToZoneDateTime); }
Example 19
Source File: TimeSection.java From OEE-Designer with MIT License | 2 votes |
/** * Represents an area of a given range, defined by a start and stop time. * This class is used for regions and areas in many clocks. It is possible * to check a time against the defined range and fire events in case the * value enters or leaves the defined region. */ public TimeSection() { this(LocalTime.now(), LocalTime.now(), "", null, Color.TRANSPARENT, Color.TRANSPARENT, Color.TRANSPARENT, false, DayOfWeek.MONDAY, DayOfWeek.TUESDAY, DayOfWeek.WEDNESDAY, DayOfWeek.THURSDAY, DayOfWeek.FRIDAY, DayOfWeek.SATURDAY, DayOfWeek.SUNDAY); }
Example 20
Source File: TimeSection.java From tilesfx with Apache License 2.0 | 2 votes |
/** * Represents an area of a given range, defined by a start and stop time. * This class is used for regions and areas in many clocks. It is possible * to check a time against the defined range and fire events in case the * value enters or leaves the defined region. */ public TimeSection() { this(LocalTime.now(), LocalTime.now(), "", null, Color.TRANSPARENT, Color.TRANSPARENT, Color.TRANSPARENT, false, DayOfWeek.MONDAY, DayOfWeek.TUESDAY, DayOfWeek.WEDNESDAY, DayOfWeek.THURSDAY, DayOfWeek.FRIDAY, DayOfWeek.SATURDAY, DayOfWeek.SUNDAY); }