diff options
author | Roberto E. Escobar | 2012-07-13 22:31:56 +0000 |
---|---|---|
committer | Roberto E. Escobar | 2012-07-20 21:25:56 +0000 |
commit | 44a5b9a0f58d859125a7813af252567d8d5ee0ef (patch) | |
tree | 672492a46938f8a192dc5d58850dfb4db7216303 /plugins/org.eclipse.osee.framework.jdk.core | |
parent | 6abd48918c14ca7db11f804be11ef1c4bb3a764a (diff) | |
download | org.eclipse.osee-44a5b9a0f58d859125a7813af252567d8d5ee0ef.tar.gz org.eclipse.osee-44a5b9a0f58d859125a7813af252567d8d5ee0ef.tar.xz org.eclipse.osee-44a5b9a0f58d859125a7813af252567d8d5ee0ef.zip |
feature[ats_M5LLE]: Add selective loading and tx co-modification checks
Diffstat (limited to 'plugins/org.eclipse.osee.framework.jdk.core')
2 files changed, 44 insertions, 0 deletions
diff --git a/plugins/org.eclipse.osee.framework.jdk.core/src/org/eclipse/osee/framework/jdk/core/type/HasPriority.java b/plugins/org.eclipse.osee.framework.jdk.core/src/org/eclipse/osee/framework/jdk/core/type/HasPriority.java new file mode 100644 index 00000000000..3b05b5a2e98 --- /dev/null +++ b/plugins/org.eclipse.osee.framework.jdk.core/src/org/eclipse/osee/framework/jdk/core/type/HasPriority.java @@ -0,0 +1,19 @@ +/******************************************************************************* + * Copyright (c) 2012 Boeing. + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * Boeing - initial API and implementation + *******************************************************************************/ +package org.eclipse.osee.framework.jdk.core.type; + +/** + * @author Roberto E. Escobar + */ +public interface HasPriority { + + int getPriority(); +} diff --git a/plugins/org.eclipse.osee.framework.jdk.core/src/org/eclipse/osee/framework/jdk/core/util/PriorityComparator.java b/plugins/org.eclipse.osee.framework.jdk.core/src/org/eclipse/osee/framework/jdk/core/util/PriorityComparator.java new file mode 100644 index 00000000000..e5fe2cc43a4 --- /dev/null +++ b/plugins/org.eclipse.osee.framework.jdk.core/src/org/eclipse/osee/framework/jdk/core/util/PriorityComparator.java @@ -0,0 +1,25 @@ +/******************************************************************************* + * Copyright (c) 2004, 2007 Boeing. + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * Boeing - initial API and implementation + *******************************************************************************/ +package org.eclipse.osee.framework.jdk.core.util; + +import java.util.Comparator; +import org.eclipse.osee.framework.jdk.core.type.HasPriority; + +/** + * @author Roberto E. Escobar + */ +public class PriorityComparator implements Comparator<HasPriority> { + + @Override + public int compare(HasPriority o1, HasPriority o2) { + return o1.getPriority() - o2.getPriority(); + } +} |