Home | History | Annotate | Download | only in internal
      1 package org.hamcrest.internal;
      2 
      3 import org.hamcrest.Description;
      4 import org.hamcrest.SelfDescribing;
      5 
      6 public class SelfDescribingValue<T> implements SelfDescribing {
      7     private T value;
      8 
      9     public SelfDescribingValue(T value) {
     10         this.value = value;
     11     }
     12 
     13     @Override
     14     public void describeTo(Description description) {
     15         description.appendValue(value);
     16     }
     17 }
     18