1/* Copyright (c) 2000-2006 hamcrest.org 2 */ 3package org.hamcrest; 4 5/** 6 * BaseClass for all Matcher implementations. 7 * 8 * @see Matcher 9 */ 10public abstract class BaseMatcher<T> implements Matcher<T> { 11 12 /** 13 * @see Matcher#_dont_implement_Matcher___instead_extend_BaseMatcher_() 14 */ 15 public final void _dont_implement_Matcher___instead_extend_BaseMatcher_() { 16 // See Matcher interface for an explanation of this method. 17 } 18 19 @Override 20 public String toString() { 21 return StringDescription.toString(this); 22 } 23} 24