corda/classpath/java/lang/Package.java
Joel Dice 87b02eb949 update copyright years
Previously, I used a shell script to extract modification date ranges
from the Git history, but that was complicated and unreliable, so now
every file just gets the same year range in its copyright header.  If
someone needs to know when a specific file was modified and by whom,
they can look at the Git history themselves; no need to include it
redundantly in the header.
2013-07-02 20:52:38 -06:00

83 lines
2.2 KiB
Java

/* Copyright (c) 2008-2013, 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 specificationTitle;
private final String specificationVendor;
private final String specificationVersion;
private final URL sealed;
private final ClassLoader loader;
Package(String name,
String implementationTitle,
String implementationVendor,
String implementationVersion,
String specificationTitle,
String specificationVendor,
String specificationVersion,
URL sealed,
ClassLoader loader)
{
this.name = name;
this.implementationTitle = implementationTitle;
this.implementationVendor = implementationVendor;
this.implementationVersion = implementationVersion;
this.specificationTitle = specificationTitle;
this.specificationVendor = specificationVendor;
this.specificationVersion = specificationVersion;
this.sealed = sealed;
this.loader = loader;
}
public String getName() {
return name;
}
public String getImplementationTitle() {
return implementationTitle;
}
public String getImplementationVendor() {
return implementationVendor;
}
public String getImplementationVersion() {
return implementationVersion;
}
public String getSpecificationTitle() {
return specificationTitle;
}
public String getSpecificationVendor() {
return specificationVendor;
}
public String getSpecificationVersion() {
return specificationVersion;
}
public boolean isSealed() {
return sealed != null;
}
public boolean isSealed(URL url) {
return sealed.equals(url);
}
}