Java Code Examples for org.threeten.bp.Instant#ofEpochMilli()

The following examples show how to use org.threeten.bp.Instant#ofEpochMilli() . 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: CustomInstantDeserializer.java    From openapi-generator with Apache License 2.0 4 votes vote down vote up
@Override
public Instant apply(FromIntegerArguments a) {
  return Instant.ofEpochMilli(a.value);
}
 
Example 2
Source File: CustomInstantDeserializer.java    From openapi-generator with Apache License 2.0 4 votes vote down vote up
@Override
public Instant apply(FromIntegerArguments a) {
  return Instant.ofEpochMilli(a.value);
}
 
Example 3
Source File: CustomInstantDeserializer.java    From openapi-generator with Apache License 2.0 4 votes vote down vote up
@Override
public Instant apply(FromIntegerArguments a) {
  return Instant.ofEpochMilli(a.value);
}
 
Example 4
Source File: CustomInstantDeserializer.java    From openapi-generator with Apache License 2.0 4 votes vote down vote up
@Override
public Instant apply(FromIntegerArguments a) {
  return Instant.ofEpochMilli(a.value);
}
 
Example 5
Source File: CustomInstantDeserializer.java    From openapi-generator with Apache License 2.0 4 votes vote down vote up
@Override
public Instant apply(FromIntegerArguments a) {
  return Instant.ofEpochMilli(a.value);
}
 
Example 6
Source File: CustomInstantDeserializer.java    From openapi-generator with Apache License 2.0 4 votes vote down vote up
@Override
public Instant apply(FromIntegerArguments a) {
  return Instant.ofEpochMilli(a.value);
}
 
Example 7
Source File: CustomInstantDeserializer.java    From openapi-generator with Apache License 2.0 4 votes vote down vote up
@Override
public Instant apply(FromIntegerArguments a) {
  return Instant.ofEpochMilli(a.value);
}
 
Example 8
Source File: CustomInstantDeserializer.java    From openapi-generator with Apache License 2.0 4 votes vote down vote up
@Override
public Instant apply(FromIntegerArguments a) {
  return Instant.ofEpochMilli(a.value);
}
 
Example 9
Source File: CustomInstantDeserializer.java    From openapi-generator with Apache License 2.0 4 votes vote down vote up
@Override
public Instant apply(FromIntegerArguments a) {
  return Instant.ofEpochMilli(a.value);
}
 
Example 10
Source File: InstantConverter.java    From Hentoid with Apache License 2.0 4 votes vote down vote up
@Override
@Nullable
public Instant convertToEntityProperty(Long databaseValue) {
    if (databaseValue == null) return null;
    return Instant.ofEpochMilli(databaseValue);
}
 
Example 11
Source File: JsonErrorRecord.java    From Hentoid with Apache License 2.0 4 votes vote down vote up
ErrorRecord toEntity() {
    return new ErrorRecord(type, url, contentPart, description, Instant.ofEpochMilli(timestamp));
}
 
Example 12
Source File: CustomInstantDeserializer.java    From tutorials with MIT License 4 votes vote down vote up
@Override
public Instant apply(FromIntegerArguments a) {
  return Instant.ofEpochMilli(a.value);
}