Qwylt

java.lang.module
Class VersionList

java.lang.Object
  extended by java.lang.module.VersionList
All Implemented Interfaces:
Matcher<Version>

public class VersionList
extends java.lang.Object
implements Matcher<Version>

A composite Version Matcher. Supports a list of version matchers, such as Version, VersionRange and even other VersionList instances.

Since:
Dec 10, 2008
Author:
Bryan Atsatt

Constructor Summary
VersionList(java.util.List<Matcher<Version>> matchers)
          Construct a VersionList from the specified version matchers.
VersionList(Matcher<Version>... matchers)
          Construct a VersionList from the specified version matchers.
 
Method Summary
 boolean matches(Version version)
          Tests if the specified version is contained in this instance.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VersionList

public VersionList(Matcher<Version>... matchers)
Construct a VersionList from the specified version matchers.

Parameters:
matchers - The version matchers.

VersionList

public VersionList(java.util.List<Matcher<Version>> matchers)
Construct a VersionList from the specified version matchers.

Parameters:
matchers - The version matchers.
Method Detail

matches

public boolean matches(Version version)
Tests if the specified version is contained in this instance.

Specified by:
matches in interface Matcher<Version>
Parameters:
version - The target version.
Returns:
true if the specified version is contained in this instance; false otherwise.

Qwylt

Send comments or questions to Bryan Atsatt