Example usage for org.joda.time.base BaseLocal isSupported

List of usage examples for org.joda.time.base BaseLocal isSupported

Introduction

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

Prototype

public boolean isSupported(DateTimeFieldType type) 

Source Link

Document

Checks whether the field specified is supported by this partial.

Usage

From source file:net.karlmartens.platform.datatable.DataTableCell.java

License:Apache License

private static JsonElement createJsonElement(DateTimeFieldType field, BaseLocal local) {
    if (!local.isSupported(field))
        return JsonNull.INSTANCE;

    return new JsonPrimitive(local.get(field));
}