mirror of
https://github.com/geometer/FBReaderJ.git
synced 2025-10-03 17:59:33 +02:00
RationalNumber class moved to utils package; copyright notice added
This commit is contained in:
parent
ce1ee9a494
commit
409cfd8a74
4 changed files with 32 additions and 11 deletions
|
@ -32,6 +32,7 @@ import org.geometerplus.zlibrary.core.config.ZLConfig;
|
|||
import org.geometerplus.zlibrary.core.filesystem.ZLFile;
|
||||
import org.geometerplus.zlibrary.core.options.ZLStringOption;
|
||||
import org.geometerplus.zlibrary.core.options.ZLIntegerOption;
|
||||
import org.geometerplus.zlibrary.core.util.RationalNumber;
|
||||
import org.geometerplus.zlibrary.core.util.ZLColor;
|
||||
import org.geometerplus.zlibrary.text.view.ZLTextPosition;
|
||||
import org.geometerplus.zlibrary.text.view.ZLTextFixedPosition;
|
||||
|
|
|
@ -22,6 +22,7 @@ package org.geometerplus.fbreader.book;
|
|||
import java.util.*;
|
||||
|
||||
import org.geometerplus.zlibrary.core.filesystem.ZLFile;
|
||||
import org.geometerplus.zlibrary.core.util.RationalNumber;
|
||||
import org.geometerplus.zlibrary.core.util.ZLColor;
|
||||
|
||||
import org.geometerplus.zlibrary.text.view.ZLTextPosition;
|
||||
|
|
|
@ -1,11 +0,0 @@
|
|||
package org.geometerplus.fbreader.book;
|
||||
|
||||
public class RationalNumber {
|
||||
public final long Numerator;
|
||||
public final long Denominator;
|
||||
|
||||
public RationalNumber(long numerator, long denominator) {
|
||||
Numerator = numerator;
|
||||
Denominator = denominator;
|
||||
}
|
||||
}
|
30
src/org/geometerplus/zlibrary/core/util/RationalNumber.java
Normal file
30
src/org/geometerplus/zlibrary/core/util/RationalNumber.java
Normal file
|
@ -0,0 +1,30 @@
|
|||
/*
|
||||
* Copyright (C) 2007-2013 Geometer Plus <contact@geometerplus.com>
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation; either version 2 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program 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 General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program; if not, write to the Free Software
|
||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
|
||||
* 02110-1301, USA.
|
||||
*/
|
||||
|
||||
package org.geometerplus.zlibrary.core.util;
|
||||
|
||||
public class RationalNumber {
|
||||
public final long Numerator;
|
||||
public final long Denominator;
|
||||
|
||||
public RationalNumber(long numerator, long denominator) {
|
||||
Numerator = numerator;
|
||||
Denominator = denominator;
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue