@@ -0,0 +1,2449 @@
+/*%0D%0A * Copyright (c) 2010, Stephen Colebourne & Michael Nascimento Santos%0D%0A *%0D%0A * All rights reserved.%0D%0A *%0D%0A * Redistribution and use in source and binary forms, with or without%0D%0A * modification, are permitted provided that the following conditions are met:%0D%0A *%0D%0A *  * Redistributions of source code must retain the above copyright notice,%0D%0A *    this list of conditions and the following disclaimer.%0D%0A *%0D%0A *  * Redistributions in binary form must reproduce the above copyright notice,%0D%0A *    this list of conditions and the following disclaimer in the documentation%0D%0A *    and/or other materials provided with the distribution.%0D%0A *%0D%0A *  * Neither the name of JSR-310 nor the names of its contributors%0D%0A *    may be used to endorse or promote products derived from this software%0D%0A *    without specific prior written permission.%0D%0A *%0D%0A * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS%0D%0A * %22AS IS%22 AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT%0D%0A * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR%0D%0A * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR%0D%0A * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,%0D%0A * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,%0D%0A * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR%0D%0A * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF%0D%0A * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING%0D%0A * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS%0D%0A * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.%0D%0A */%0D%0Apackage javax.time;%0D%0A%0D%0A/**%0D%0A * Mock rules that returns a leap second on day 1000.%0D%0A *%0D%0A * @author Stephen Colebourne%0D%0A */%0D%0Apublic class MockUTCRulesLeapOn1000 extends UTCRules %7B%0D%0A%0D%0A    @Override%0D%0A    public String getName() %7B%0D%0A        return %22Mock1000%22;%0D%0A    %7D%0D%0A%0D%0A    @Override%0D%0A    public int getLeapSecondAdjustment(long mjDay) %7B%0D%0A        return (mjDay == 1000 ? 1 : 0);%0D%0A    %7D%0D%0A%0D%0A    @Override%0D%0A    public int getTAIOffset(long mjDay) %7B%0D%0A        return (mjDay %3C= 1000 ? 10 : 11);%0D%0A    %7D%0D%0A%0D%0A    @Override%0D%0A    public long%5B%5D getLeapSecondDates() %7B%0D%0A        return new long%5B%5D %7B1000%7D;%0D%0A    %7D%0D%0A%0D%0A    @Override%0D%0A    public TAIInstant convertToTAI(UTCInstant utcInstant) %7B%0D%0A        return null;%0D%0A    %7D%0D%0A%0D%0A    @Override%0D%0A    public UTCInstant convertToUTC(TAIInstant taiInstant) %7B%0D%0A        return null;%0D%0A    %7D%0D%0A%0D%0A%7D%0D%0A

Add with methods to UTCInstant