import java.text.SimpleDateFormat;
import java.util.Date;
+import java.util.function.Supplier;
import org.eclipse.equinox.p2.metadata.IVersionedId;
import org.eclipse.equinox.p2.metadata.Version;
VersionedId vid;
GraphBundleEx(GraphBundle e) {
+ this.graphSource = e.graphSource;
this.graph = e.graph;
this.resource = e.resource;
this.hashcode = e.hashcode;
this.immutable = isImmutable;
}
+ public GraphBundleEx(String name, Supplier<TransferableGraph1> source, int hashValue, IVersionedId vid, boolean isImmutable)
+ throws RuntimeBindingException
+ {
+ super(name, source, hashValue, vid.getId(), vid.getVersion().getSegment(0).toString()+"."+vid.getVersion().getSegment(1).toString()+"."+vid.getVersion().getSegment(2).toString()+"."+vid.getVersion().getSegment(3).toString());
+ this.vid = new VersionedId(id, vid.getVersion());
+ this.immutable = isImmutable;
+ }
+
public GraphBundleEx(String name, TransferableGraph1 data, IVersionedId vid)
throws RuntimeBindingException
{