Diff.java
1.15 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
package org.apache.commons.lang3.builder;
import java.lang.reflect.Type;
import java.util.Map;
import org.apache.commons.lang3.ObjectUtils;
import org.apache.commons.lang3.reflect.TypeUtils;
import org.apache.commons.lang3.tuple.Pair;
public abstract class Diff<T>
extends Pair<T, T>
{
private static final long serialVersionUID = 1L;
private final Type a = (Type)ObjectUtils.defaultIfNull(TypeUtils.getTypeArguments(getClass(), Diff.class).get(Diff.class.getTypeParameters()[0]), Object.class);
private final String b;
protected Diff(String paramString)
{
this.b = paramString;
}
public final String getFieldName()
{
return this.b;
}
public final Type getType()
{
return this.a;
}
public final T setValue(T paramT)
{
throw new UnsupportedOperationException("Cannot alter Diff object.");
}
public final String toString()
{
return String.format("[%s: %s, %s]", new Object[] { this.b, getLeft(), getRight() });
}
}
/* Location: /home/merong/decompile/hackery-dex2jar.jar!/org/apache/commons/lang3/builder/Diff.class
* Java compiler version: 6 (50.0)
* JD-Core Version: 0.7.1
*/