Package org.xwiki.diff.display
Class UnifiedDiffConfiguration<E,F>
- java.lang.Object
-
- java.util.AbstractMap<K,V>
-
- java.util.HashMap<String,Object>
-
- org.xwiki.diff.DiffConfiguration<F>
-
- org.xwiki.diff.display.UnifiedDiffConfiguration<E,F>
-
- Type Parameters:
E
- the type of elements that are compared to produce the first level diffF
- the type of sub-elements that can be compared to produce the second level diff when an element is modified
- All Implemented Interfaces:
Serializable
,Cloneable
,Map<String,Object>
public class UnifiedDiffConfiguration<E,F> extends DiffConfiguration<F>
Configuration forUnifiedDiffDisplayer
.- Since:
- 4.1RC1
- Version:
- $Id: fb2eeca000d2976940c99cfcaaec00b1e42e327b $
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K extends Object,V extends Object>, AbstractMap.SimpleImmutableEntry<K extends Object,V extends Object>
-
-
Constructor Summary
Constructors Constructor Description UnifiedDiffConfiguration()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getContextSize()
Splitter<E,F>
getSplitter()
void
setContextSize(int contextSize)
Sets the number of unmodified elements to display before and after a chunk of modified elements.void
setSplitter(Splitter<E,F> splitter)
Sets The object used to split the modified elements into sub-elements in order to produce a more detailed diff.-
Methods inherited from class java.util.HashMap
clear, clone, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, forEach, get, getOrDefault, isEmpty, keySet, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, values
-
Methods inherited from class java.util.AbstractMap
equals, hashCode, toString
-
-
-
-
Method Detail
-
getContextSize
public int getContextSize()
- Returns:
- the number of unmodified elements to display before and after a chunk of modified elements
-
setContextSize
public void setContextSize(int contextSize)
Sets the number of unmodified elements to display before and after a chunk of modified elements.- Parameters:
contextSize
- the context size
-
getSplitter
public Splitter<E,F> getSplitter()
- Returns:
- the object used to split the modified elements into sub-elements in order to produce a more detailed diff
-
-