Example usage for org.joda.time ReadablePartial isSupported

List of usage examples for org.joda.time ReadablePartial isSupported

Introduction

In this page you can find the example usage for org.joda.time ReadablePartial isSupported.

Prototype

boolean isSupported(DateTimeFieldType field);

Source Link

Document

Checks whether the field type specified is supported by this partial.

Usage

From source file:org.netxilia.api.utils.DateUtils.java

License:Open Source License

public static int getField(ReadablePartial partial, LocalDateTime fullDateTime, DateTimeFieldType field) {
    return partial.isSupported(field) ? partial.get(field) : fullDateTime.get(field);
}