public class CloseUpperVersionFilter extends Object implements LayoutFilter
Select at most one layout of version whose upper boundary is closed on the version number given. Ignores any non conforming version number.
The valid format for versions is expressed in:
(\.?\d+)+
Constructor and Description |
---|
CloseUpperVersionFilter() |
Modifier and Type | Method and Description |
---|---|
Collection<LayoutTO> |
filter(Collection<LayoutTO> layouts)
Filter a collection of layouts and return a sub-set of
layouts.
|
String |
getVersionBoundary()
The upper version boundary being used to filter out the set.
|
void |
setVersionBoundary(String versionBoundary)
The upper version boundary being used to filter out the set.
|
public Collection<LayoutTO> filter(Collection<LayoutTO> layouts)
LayoutFilter
filter
in interface LayoutFilter
layouts
- The layouts to be filtered.public String getVersionBoundary()
public void setVersionBoundary(String versionBoundary)
Copyright © 2014. All Rights Reserved.