]> gerrit.simantics Code Review - simantics/platform.git/blob - bundles/org.simantics.db.layer0/src/org/simantics/db/layer0/property/OrderedResource.java
Always write model activation information in activations VG
[simantics/platform.git] / bundles / org.simantics.db.layer0 / src / org / simantics / db / layer0 / property / OrderedResource.java
1 package org.simantics.db.layer0.property;
2
3 import org.simantics.db.Resource;
4
5 public final class OrderedResource implements Comparable<OrderedResource> {
6         
7         final public Integer i;
8         final public Resource r;
9         
10         public OrderedResource(Integer i, Resource r) {
11                 this.i = i;
12                 this.r = r;
13         }
14         
15         @Override
16         public int compareTo(OrderedResource o) {
17                 return i.compareTo(o.i);
18         }
19         
20 }