11ecfda91236a8970119144e59e0ba6113dc22c0fBrett Chabotpackage org.hamcrest.internal; 21ecfda91236a8970119144e59e0ba6113dc22c0fBrett Chabot 31ecfda91236a8970119144e59e0ba6113dc22c0fBrett Chabotimport org.hamcrest.Description; 41ecfda91236a8970119144e59e0ba6113dc22c0fBrett Chabotimport org.hamcrest.SelfDescribing; 51ecfda91236a8970119144e59e0ba6113dc22c0fBrett Chabot 61ecfda91236a8970119144e59e0ba6113dc22c0fBrett Chabotpublic class SelfDescribingValue<T> implements SelfDescribing { 71ecfda91236a8970119144e59e0ba6113dc22c0fBrett Chabot private T value; 81ecfda91236a8970119144e59e0ba6113dc22c0fBrett Chabot 91ecfda91236a8970119144e59e0ba6113dc22c0fBrett Chabot public SelfDescribingValue(T value) { 101ecfda91236a8970119144e59e0ba6113dc22c0fBrett Chabot this.value = value; 111ecfda91236a8970119144e59e0ba6113dc22c0fBrett Chabot } 121ecfda91236a8970119144e59e0ba6113dc22c0fBrett Chabot 131ecfda91236a8970119144e59e0ba6113dc22c0fBrett Chabot public void describeTo(Description description) { 141ecfda91236a8970119144e59e0ba6113dc22c0fBrett Chabot description.appendValue(value); 151ecfda91236a8970119144e59e0ba6113dc22c0fBrett Chabot } 161ecfda91236a8970119144e59e0ba6113dc22c0fBrett Chabot} 17