public class VersionMapper extends Object implements org.apache.tools.ant.util.FileNameMapper, Comparator<String>
Constructor and Description |
---|
VersionMapper() |
Modifier and Type | Method and Description |
---|---|
int |
compare(String s1,
String s2) |
String[] |
mapFileName(String sourceFileName) |
void |
setFrom(String from)
Set the versions identifiers that this mapper can remove from filenames.
|
void |
setTo(String to)
By default, only filename is changed, but if this attribute is set to
flatten , directory is removed. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
comparing, comparing, comparingDouble, comparingInt, comparingLong, equals, naturalOrder, nullsFirst, nullsLast, reversed, reverseOrder, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
public String[] mapFileName(String sourceFileName)
mapFileName
in interface org.apache.tools.ant.util.FileNameMapper
public void setFrom(String from)
versionsId
property value.setFrom
in interface org.apache.tools.ant.util.FileNameMapper
from
- The string from which we set.public void setTo(String to)
flatten
, directory is removed.setTo
in interface org.apache.tools.ant.util.FileNameMapper
to
- to
public int compare(String s1, String s2)
compare
in interface Comparator<String>
Copyright © 2002–2022 The Apache Software Foundation. All rights reserved.