Java Code Examples for java.time.temporal.TemporalField#equals()
The following examples show how to use
java.time.temporal.TemporalField#equals() .
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: GamaDate.java From gama with GNU General Public License v3.0 | 5 votes |
@Override public long getLong(final TemporalField field) { if (internal.isSupported(field)) { return internal.getLong(field); } if (field.equals(ChronoField.OFFSET_SECONDS)) { // If no offset or time zone is supplied, we assume it is the zone of the modeler return GamaDateType.DEFAULT_OFFSET_IN_SECONDS.getTotalSeconds(); } if (field.equals(ChronoField.INSTANT_SECONDS)) { return GamaDateType.EPOCH.until(internal, ChronoUnit.SECONDS); } return 0l; }
Example 2
Source File: MockFieldValue.java From dragonwell8_jdk with GNU General Public License v2.0 | 4 votes |
@Override public boolean isSupported(TemporalField field) { return field != null && field.equals(this.field); }
Example 3
Source File: MockFieldValue.java From TencentKona-8 with GNU General Public License v2.0 | 4 votes |
@Override public boolean isSupported(TemporalField field) { return field != null && field.equals(this.field); }
Example 4
Source File: MockFieldValue.java From jdk8u60 with GNU General Public License v2.0 | 4 votes |
@Override public boolean isSupported(TemporalField field) { return field != null && field.equals(this.field); }
Example 5
Source File: MockFieldValue.java From openjdk-jdk8u with GNU General Public License v2.0 | 4 votes |
@Override public boolean isSupported(TemporalField field) { return field != null && field.equals(this.field); }
Example 6
Source File: MockFieldValue.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 4 votes |
@Override public boolean isSupported(TemporalField field) { return field != null && field.equals(this.field); }
Example 7
Source File: MockFieldValue.java From openjdk-jdk9 with GNU General Public License v2.0 | 4 votes |
@Override public boolean isSupported(TemporalField field) { return field != null && field.equals(this.field); }
Example 8
Source File: MockFieldValue.java From jdk8u-jdk with GNU General Public License v2.0 | 4 votes |
@Override public boolean isSupported(TemporalField field) { return field != null && field.equals(this.field); }
Example 9
Source File: MockFieldValue.java From hottub with GNU General Public License v2.0 | 4 votes |
@Override public boolean isSupported(TemporalField field) { return field != null && field.equals(this.field); }
Example 10
Source File: MockFieldValue.java From openjdk-8-source with GNU General Public License v2.0 | 4 votes |
@Override public boolean isSupported(TemporalField field) { return field != null && field.equals(this.field); }
Example 11
Source File: MockFieldValue.java From openjdk-8 with GNU General Public License v2.0 | 4 votes |
@Override public boolean isSupported(TemporalField field) { return field != null && field.equals(this.field); }
Example 12
Source File: MockFieldValue.java From jdk8u_jdk with GNU General Public License v2.0 | 4 votes |
@Override public boolean isSupported(TemporalField field) { return field != null && field.equals(this.field); }
Example 13
Source File: MockFieldValue.java From jdk8u-jdk with GNU General Public License v2.0 | 4 votes |
@Override public boolean isSupported(TemporalField field) { return field != null && field.equals(this.field); }
Example 14
Source File: MockFieldValue.java From jdk8u-dev-jdk with GNU General Public License v2.0 | 4 votes |
@Override public boolean isSupported(TemporalField field) { return field != null && field.equals(this.field); }
Example 15
Source File: GamaDate.java From gama with GNU General Public License v3.0 | 4 votes |
@Override public boolean isSupported(final TemporalField field) { return internal.isSupported(field) || field.equals(ChronoField.OFFSET_SECONDS) || field.equals(ChronoField.INSTANT_SECONDS); }
Example 16
Source File: MockFieldValue.java From j2objc with Apache License 2.0 | 4 votes |
@Override public boolean isSupported(TemporalField field) { return field != null && field.equals(this.field); }