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

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

Introduction

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

Prototype

public int get(DateTimeFieldType type) 

Source Link

Document

Get the value of one of the fields of a datetime.

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));
}