mirror of
https://github.com/corda/corda.git
synced 2024-12-29 09:18:58 +00:00
classpath progress
This commit is contained in:
parent
a2bd7d0668
commit
5e336544f5
@ -22,6 +22,14 @@ public class PrintStream extends OutputStream {
|
|||||||
} catch (IOException e) { }
|
} catch (IOException e) { }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public void print(Object o) {
|
||||||
|
print(o.toString());
|
||||||
|
}
|
||||||
|
|
||||||
|
public void print(char c) {
|
||||||
|
print(String.valueOf(c));
|
||||||
|
}
|
||||||
|
|
||||||
public synchronized void println(String s) {
|
public synchronized void println(String s) {
|
||||||
try {
|
try {
|
||||||
out.write(s.getBytes());
|
out.write(s.getBytes());
|
||||||
@ -36,6 +44,14 @@ public class PrintStream extends OutputStream {
|
|||||||
if (autoFlush) flush();
|
if (autoFlush) flush();
|
||||||
} catch (IOException e) { }
|
} catch (IOException e) { }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public void println(Object o) {
|
||||||
|
println(o.toString());
|
||||||
|
}
|
||||||
|
|
||||||
|
public void println(char c) {
|
||||||
|
println(String.valueOf(c));
|
||||||
|
}
|
||||||
|
|
||||||
public void write(int c) throws IOException {
|
public void write(int c) throws IOException {
|
||||||
out.write(c);
|
out.write(c);
|
||||||
|
@ -30,6 +30,14 @@ public class PrintWriter extends Writer {
|
|||||||
} catch (IOException e) { }
|
} catch (IOException e) { }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public void print(Object o) {
|
||||||
|
print(o.toString());
|
||||||
|
}
|
||||||
|
|
||||||
|
public void print(char c) {
|
||||||
|
print(String.valueOf(c));
|
||||||
|
}
|
||||||
|
|
||||||
public synchronized void println(String s) {
|
public synchronized void println(String s) {
|
||||||
try {
|
try {
|
||||||
out.write(s.toCharArray());
|
out.write(s.toCharArray());
|
||||||
@ -45,6 +53,14 @@ public class PrintWriter extends Writer {
|
|||||||
} catch (IOException e) { }
|
} catch (IOException e) { }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public void println(Object o) {
|
||||||
|
println(o.toString());
|
||||||
|
}
|
||||||
|
|
||||||
|
public void println(char c) {
|
||||||
|
println(String.valueOf(c));
|
||||||
|
}
|
||||||
|
|
||||||
public void write(char[] buffer, int offset, int length) throws IOException {
|
public void write(char[] buffer, int offset, int length) throws IOException {
|
||||||
out.write(buffer, offset, length);
|
out.write(buffer, offset, length);
|
||||||
if (autoFlush) flush();
|
if (autoFlush) flush();
|
||||||
|
@ -7,6 +7,18 @@ public final class Math {
|
|||||||
return (v < 0 ? -v : v);
|
return (v < 0 ? -v : v);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public static long abs(long v) {
|
||||||
|
return (v < 0 ? -v : v);
|
||||||
|
}
|
||||||
|
|
||||||
|
public static float abs(float v) {
|
||||||
|
return (v < 0 ? -v : v);
|
||||||
|
}
|
||||||
|
|
||||||
|
public static double abs(double v) {
|
||||||
|
return (v < 0 ? -v : v);
|
||||||
|
}
|
||||||
|
|
||||||
public static long round(double v) {
|
public static long round(double v) {
|
||||||
return (long) (v + 0.5);
|
return (long) (v + 0.5);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user