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-2016 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 java.io.ObjectStreamException;


/**
 * 

Repräsentiert einen Zeiger auf eine Schaltsekundeninformation.

* * @author Meno Hochschild * @doctags.concurrency {immutable} */ 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 boolean isDateElement() { return false; } @Override public boolean isTimeElement() { return false; } @Override protected boolean isSingleton() { return true; } private Object readResolve() throws ObjectStreamException { return INSTANCE; } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy