Example usage for org.joda.time MutablePeriod toString

List of usage examples for org.joda.time MutablePeriod toString

Introduction

In this page you can find the example usage for org.joda.time MutablePeriod toString.

Prototype

@ToString
public String toString() 

Source Link

Document

Gets the value as a String in the ISO8601 duration format.

Usage

From source file:TVShowTimelineMaker.util.XML.MutablePeriodXMLWriter.java

@Override
public Element writeElements(MutablePeriod ObjectToWrite) {
    Element newElement = new Element("ReadablePeriod");
    newElement.setAttribute("class", ObjectToWrite.getClass().getCanonicalName());
    newElement.setText(ObjectToWrite.toString());
    return newElement;
}