mirror of
https://github.com/corda/corda.git
synced 2025-02-08 03:50:34 +00:00
add classes which I meant to add in earlier commits
This commit is contained in:
parent
d983e8883c
commit
6d54b6cec8
46
classpath/java/lang/Package.java
Normal file
46
classpath/java/lang/Package.java
Normal file
@ -0,0 +1,46 @@
|
|||||||
|
/* Copyright (c) 2008, Avian Contributors
|
||||||
|
|
||||||
|
Permission to use, copy, modify, and/or distribute this software
|
||||||
|
for any purpose with or without fee is hereby granted, provided
|
||||||
|
that the above copyright notice and this permission notice appear
|
||||||
|
in all copies.
|
||||||
|
|
||||||
|
There is NO WARRANTY for this software. See license.txt for
|
||||||
|
details. */
|
||||||
|
|
||||||
|
package java.lang;
|
||||||
|
|
||||||
|
import java.net.URL;
|
||||||
|
|
||||||
|
public class Package {
|
||||||
|
private final String name;
|
||||||
|
private final String implementationTitle;
|
||||||
|
private final String implementationVendor;
|
||||||
|
private final String implementationVersion;
|
||||||
|
private final String specementationTitle;
|
||||||
|
private final String specementationVendor;
|
||||||
|
private final String specementationVersion;
|
||||||
|
private final URL sealed;
|
||||||
|
private final ClassLoader loader;
|
||||||
|
|
||||||
|
Package(String name,
|
||||||
|
String implementationTitle,
|
||||||
|
String implementationVendor,
|
||||||
|
String implementationVersion,
|
||||||
|
String specementationTitle,
|
||||||
|
String specementationVendor,
|
||||||
|
String specementationVersion,
|
||||||
|
URL sealed,
|
||||||
|
ClassLoader loader)
|
||||||
|
{
|
||||||
|
this.name = name;
|
||||||
|
this.implementationTitle = implementationTitle;
|
||||||
|
this.implementationVendor = implementationVendor;
|
||||||
|
this.implementationVersion = implementationVersion;
|
||||||
|
this.specementationTitle = specementationTitle;
|
||||||
|
this.specementationVendor = specementationVendor;
|
||||||
|
this.specementationVersion = specementationVersion;
|
||||||
|
this.sealed = sealed;
|
||||||
|
this.loader = loader;
|
||||||
|
}
|
||||||
|
}
|
21
classpath/java/lang/ref/SoftReference.java
Normal file
21
classpath/java/lang/ref/SoftReference.java
Normal file
@ -0,0 +1,21 @@
|
|||||||
|
/* Copyright (c) 2009, Avian Contributors
|
||||||
|
|
||||||
|
Permission to use, copy, modify, and/or distribute this software
|
||||||
|
for any purpose with or without fee is hereby granted, provided
|
||||||
|
that the above copyright notice and this permission notice appear
|
||||||
|
in all copies.
|
||||||
|
|
||||||
|
There is NO WARRANTY for this software. See license.txt for
|
||||||
|
details. */
|
||||||
|
|
||||||
|
package java.lang.ref;
|
||||||
|
|
||||||
|
public class SoftReference<T> extends Reference<T> {
|
||||||
|
public SoftReference(T target, ReferenceQueue<? super T> queue) {
|
||||||
|
super(target, queue);
|
||||||
|
}
|
||||||
|
|
||||||
|
public SoftReference(T target) {
|
||||||
|
this(target, null);
|
||||||
|
}
|
||||||
|
}
|
23
classpath/java/util/Formatter.java
Normal file
23
classpath/java/util/Formatter.java
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
/* Copyright (c) 2009, Avian Contributors
|
||||||
|
|
||||||
|
Permission to use, copy, modify, and/or distribute this software
|
||||||
|
for any purpose with or without fee is hereby granted, provided
|
||||||
|
that the above copyright notice and this permission notice appear
|
||||||
|
in all copies.
|
||||||
|
|
||||||
|
There is NO WARRANTY for this software. See license.txt for
|
||||||
|
details. */
|
||||||
|
|
||||||
|
package java.util;
|
||||||
|
|
||||||
|
public class Formatter {
|
||||||
|
private final Locale locale;
|
||||||
|
|
||||||
|
public Formatter(Locale locale) {
|
||||||
|
this.locale = locale;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Formatter format(String format, Object ... args) {
|
||||||
|
throw new UnsupportedOperationException();
|
||||||
|
}
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user