KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > fr > jayasoft > ivy > version > ExactVersionMatcher


1 /*
2  * This file is subject to the licence found in LICENCE.TXT in the root directory of the project.
3  * Copyright Jayasoft 2005 - All rights reserved
4  *
5  * #SNAPSHOT#
6  */

7 package fr.jayasoft.ivy.version;
8
9 import fr.jayasoft.ivy.ModuleRevisionId;
10
11 public class ExactVersionMatcher extends AbstractVersionMatcher {
12
13     public ExactVersionMatcher() {
14         super("exact");
15     }
16     
17     public boolean isDynamic(ModuleRevisionId askedMrid) {
18         return false;
19     }
20
21     public boolean accept(ModuleRevisionId askedMrid, ModuleRevisionId foundMrid) {
22         return askedMrid.getRevision().equals(foundMrid.getRevision());
23     }
24 }
25
Popular Tags