Class DiffCommandJar
java.lang.Object
net.thevpc.nuts.toolbox.ndiff.jar.AbstractDiffCommand
net.thevpc.nuts.toolbox.ndiff.jar.commands.DiffCommandZip
net.thevpc.nuts.toolbox.ndiff.jar.commands.DiffCommandJar
- All Implemented Interfaces:
DiffCommand
DiffCommandJar diff=new DiffCommandJar(jarfile1,jarfile2);
DiffResult result=diff.getResult();
for(DiffItem i:result){
switch(i.getItemType()){
case "java-class": {
String className=((DiffItemJavaClass)i).getclassName();
if(i.getDiffStatus()==DiffStatus.ADDED){
System.out.println(className +" is a new class");
}
System.out.println(i);
break;
}
default: {
System.out.println(i);
break;
}
}
}
- Author:
- thevpc
-
Nested Class Summary
Nested classes/interfaces inherited from class DiffCommandZip
DiffCommandZip.ZipSource, DiffCommandZip.ZipSourceFile -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanacceptEntry(String entryName) intacceptInput(Object input) Methods inherited from class DiffCommandZip
acceptDiffKey, createContentDiffItem, hash, map, prepareSourceOrTargetMethods inherited from class AbstractDiffCommand
createChildItem, createContext, createResult, eval, getId, resolveDiffItemFactory
-
Field Details
-
INSTANCE
-
-
Constructor Details
-
DiffCommandJar
protected DiffCommandJar()
-
-
Method Details
-
acceptEntry
- Overrides:
acceptEntryin classDiffCommandZip
-
acceptInput
- Specified by:
acceptInputin interfaceDiffCommand- Overrides:
acceptInputin classDiffCommandZip
-