Example usage for org.joda.time DateTimeField getType

List of usage examples for org.joda.time DateTimeField getType

Introduction

In this page you can find the example usage for org.joda.time DateTimeField getType.

Prototype

public abstract DateTimeFieldType getType();

Source Link

Document

Get the type of the field.

Usage

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

License:Open Source License

@Override
public int getValue(int index) {
    DateTimeField field = fullDateTime.getField(index);
    if (partial.isSupported(field.getType())) {
        return partial.get(field.getType());
    }/*ww  w.j a v  a  2  s  .c  o  m*/
    return fullDateTime.get(field.getType());
}