Java Code Examples for java.time.DayOfWeek#from()
The following examples show how to use
java.time.DayOfWeek#from() .
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: UpdateService.java From sailfish-core with Apache License 2.0 | 5 votes |
private boolean isTimeForAutoUpdate(LocalDateTime dateTime) { if (!enableAutoUpdate) { return false; } LocalTime time = dateTime.toLocalTime(); return DayOfWeek.from(dateTime) == dayForUpdate && time.isAfter(fromTime) && time.isBefore(toTime); }
Example 2
Source File: TCKDayOfWeek.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 4 votes |
@Test(expectedExceptions=NullPointerException.class) public void test_factory_CalendricalObject_null() { DayOfWeek.from((TemporalAccessor) null); }
Example 3
Source File: TCKDayOfWeek.java From j2objc with Apache License 2.0 | 4 votes |
@Test(expected=NullPointerException.class) public void test_factory_CalendricalObject_null() { DayOfWeek.from((TemporalAccessor) null); }
Example 4
Source File: TCKDayOfWeek.java From openjdk-8-source with GNU General Public License v2.0 | 4 votes |
@Test(expectedExceptions=NullPointerException.class) public void test_factory_CalendricalObject_null() { DayOfWeek.from((TemporalAccessor) null); }
Example 5
Source File: TCKDayOfWeek.java From openjdk-8-source with GNU General Public License v2.0 | 4 votes |
@Test(expectedExceptions=DateTimeException.class) public void test_factory_CalendricalObject_invalid_noDerive() { DayOfWeek.from(LocalTime.of(12, 30)); }
Example 6
Source File: TCKDayOfWeek.java From hottub with GNU General Public License v2.0 | 4 votes |
@Test(expectedExceptions=NullPointerException.class) public void test_factory_CalendricalObject_null() { DayOfWeek.from((TemporalAccessor) null); }
Example 7
Source File: TCKDayOfWeek.java From jdk8u_jdk with GNU General Public License v2.0 | 4 votes |
@Test(expectedExceptions=NullPointerException.class) public void test_factory_CalendricalObject_null() { DayOfWeek.from((TemporalAccessor) null); }
Example 8
Source File: TCKDayOfWeek.java From jdk8u-jdk with GNU General Public License v2.0 | 4 votes |
@Test(expectedExceptions=NullPointerException.class) public void test_factory_CalendricalObject_null() { DayOfWeek.from((TemporalAccessor) null); }
Example 9
Source File: TCKDayOfWeek.java From openjdk-8 with GNU General Public License v2.0 | 4 votes |
@Test(expectedExceptions=NullPointerException.class) public void test_factory_CalendricalObject_null() { DayOfWeek.from((TemporalAccessor) null); }
Example 10
Source File: TCKDayOfWeek.java From jdk8u-jdk with GNU General Public License v2.0 | 4 votes |
@Test(expectedExceptions=NullPointerException.class) public void test_factory_CalendricalObject_null() { DayOfWeek.from((TemporalAccessor) null); }
Example 11
Source File: TCKDayOfWeek.java From j2objc with Apache License 2.0 | 4 votes |
@Test(expected=DateTimeException.class) public void test_factory_CalendricalObject_invalid_noDerive() { DayOfWeek.from(LocalTime.of(12, 30)); }
Example 12
Source File: TCKDayOfWeek.java From dragonwell8_jdk with GNU General Public License v2.0 | 4 votes |
@Test(expectedExceptions=DateTimeException.class) public void test_factory_CalendricalObject_invalid_noDerive() { DayOfWeek.from(LocalTime.of(12, 30)); }
Example 13
Source File: TCKDayOfWeek.java From jdk8u-dev-jdk with GNU General Public License v2.0 | 4 votes |
@Test(expectedExceptions=NullPointerException.class) public void test_factory_CalendricalObject_null() { DayOfWeek.from((TemporalAccessor) null); }
Example 14
Source File: TCKDayOfWeek.java From openjdk-jdk8u with GNU General Public License v2.0 | 4 votes |
@Test(expectedExceptions=NullPointerException.class) public void test_factory_CalendricalObject_null() { DayOfWeek.from((TemporalAccessor) null); }
Example 15
Source File: TCKDayOfWeek.java From openjdk-jdk8u with GNU General Public License v2.0 | 4 votes |
@Test(expectedExceptions=DateTimeException.class) public void test_factory_CalendricalObject_invalid_noDerive() { DayOfWeek.from(LocalTime.of(12, 30)); }
Example 16
Source File: TCKDayOfWeek.java From jdk8u_jdk with GNU General Public License v2.0 | 4 votes |
@Test(expectedExceptions=DateTimeException.class) public void test_factory_CalendricalObject_invalid_noDerive() { DayOfWeek.from(LocalTime.of(12, 30)); }
Example 17
Source File: TCKDayOfWeek.java From jdk8u60 with GNU General Public License v2.0 | 4 votes |
@Test(expectedExceptions=DateTimeException.class) public void test_factory_CalendricalObject_invalid_noDerive() { DayOfWeek.from(LocalTime.of(12, 30)); }
Example 18
Source File: TCKDayOfWeek.java From jdk8u-dev-jdk with GNU General Public License v2.0 | 4 votes |
@Test(expectedExceptions=DateTimeException.class) public void test_factory_CalendricalObject_invalid_noDerive() { DayOfWeek.from(LocalTime.of(12, 30)); }
Example 19
Source File: TCKDayOfWeek.java From TencentKona-8 with GNU General Public License v2.0 | 4 votes |
@Test(expectedExceptions=DateTimeException.class) public void test_factory_CalendricalObject_invalid_noDerive() { DayOfWeek.from(LocalTime.of(12, 30)); }
Example 20
Source File: TCKDayOfWeek.java From dragonwell8_jdk with GNU General Public License v2.0 | 4 votes |
@Test(expectedExceptions=NullPointerException.class) public void test_factory_CalendricalObject_null() { DayOfWeek.from((TemporalAccessor) null); }