All Downloads are FREE. Search and download functionalities are using the official Maven repository.

net.time4j.LeapsecondElement Maven / Gradle / Ivy

There is a newer version: 4.38
Show newest version
/*
 * -----------------------------------------------------------------------
 * Copyright © 2013-2014 Meno Hochschild, 
 * -----------------------------------------------------------------------
 * This file (LeapsecondElement.java) is part of project Time4J.
 *
 * Time4J is free software: You can redistribute it and/or modify it
 * under the terms of the GNU Lesser General Public License as published
 * by the Free Software Foundation, either version 2.1 of the License, or
 * (at your option) any later version.
 *
 * Time4J is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
 * GNU Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public License
 * along with Time4J. If not, see .
 * -----------------------------------------------------------------------
 */

package net.time4j;

import net.time4j.engine.BasicElement;
import net.time4j.engine.ChronoDisplay;


/**
 * 

Repräsentiert einen Zeiger auf eine Schaltsekundeninformation.

* * @author Meno Hochschild * @concurrency */ final class LeapsecondElement extends BasicElement { //~ Statische Felder/Initialisierungen -------------------------------- /** * Singleton-Instanz. */ static final LeapsecondElement INSTANCE = new LeapsecondElement(); private static final long serialVersionUID = -5143702899727667978L; //~ Konstruktoren ----------------------------------------------------- private LeapsecondElement() { super("LEAPSECOND"); } //~ Methoden ---------------------------------------------------------- @Override public Class getType() { return Boolean.class; } @Override public Boolean getDefaultMinimum() { return Boolean.FALSE; } @Override public Boolean getDefaultMaximum() { return Boolean.TRUE; } @Override public int compare( ChronoDisplay o1, ChronoDisplay o2 ) { return o1.get(this).compareTo(o2.get(this)); } @Override public boolean isDateElement() { return false; } @Override public boolean isTimeElement() { return false; } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy