Package org.goda.chronic.handlers

Source Code of org.goda.chronic.handlers.ORGRHandler

package org.goda.chronic.handlers;

import java.util.List;

import org.goda.chronic.Options;
import org.goda.util.CollectionUtils;
import org.goda.chronic.utils.Token;
import org.goda.time.MutableInterval;

public class ORGRHandler extends ORRHandler {

  public MutableInterval handle(List<Token> tokens, Options options) {
    MutableInterval outerMutableInterval = Handler.getAnchor(CollectionUtils.subList(tokens,2, 4), options);
    return handle(CollectionUtils.subList(tokens,0, 2), outerMutableInterval, options);
  }

}
TOP

Related Classes of org.goda.chronic.handlers.ORGRHandler

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.