public class Match extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
Match.Kind |
| Modifier and Type | Field and Description |
|---|---|
Match.Kind |
EQUAL |
Match.Kind |
SINGLE_1 |
Match.Kind |
SINGLE_2 |
Match.Kind |
UNEQUAL |
| Constructor and Description |
|---|
Match(File file1,
File file2,
Match.Kind kind)
Get a new file match.
|
| Modifier and Type | Method and Description |
|---|---|
File |
getFile1() |
File |
getFile2() |
String |
getFileName() |
String |
getFullFileName()
Get the full file name (largest common suffix).
|
Match.Kind |
getKind() |
boolean |
hasFile1() |
boolean |
hasFile2() |
public final Match.Kind UNEQUAL
public final Match.Kind EQUAL
public final Match.Kind SINGLE_1
public final Match.Kind SINGLE_2
public Match(File file1, File file2, Match.Kind kind)
file1 - the first file.file2 - the second filekind - this matches Kindpublic boolean hasFile1()
public boolean hasFile2()
public File getFile1()
public File getFile2()
public Match.Kind getKind()
public String getFileName()
public String getFullFileName()
Copyright © 2016–2019. All rights reserved.