org.hamcrest.core
Class IsAnything<T>

java.lang.Object
  extended by org.hamcrest.BaseMatcher<T>
      extended by org.hamcrest.core.IsAnything<T>
All Implemented Interfaces:
org.hamcrest.Matcher<T>, org.hamcrest.SelfDescribing

public class IsAnything<T>
extends org.hamcrest.BaseMatcher<T>

A matcher that always returns true.


Constructor Summary
IsAnything()
           
IsAnything(java.lang.String description)
           
 
Method Summary
static
<T> org.hamcrest.Matcher<T>
any(java.lang.Class<T> type)
          This matcher always evaluates to true.
static
<T> org.hamcrest.Matcher<T>
anything()
          This matcher always evaluates to true.
static
<T> org.hamcrest.Matcher<T>
anything(java.lang.String description)
          This matcher always evaluates to true.
 void describeTo(org.hamcrest.Description description)
           
 boolean matches(java.lang.Object o)
           
 
Methods inherited from class org.hamcrest.BaseMatcher
_dont_implement_Matcher___instead_extend_BaseMatcher_, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

IsAnything

public IsAnything()

IsAnything

public IsAnything(java.lang.String description)
Method Detail

matches

public boolean matches(java.lang.Object o)

describeTo

public void describeTo(org.hamcrest.Description description)

anything

public static <T> org.hamcrest.Matcher<T> anything()
This matcher always evaluates to true.


anything

public static <T> org.hamcrest.Matcher<T> anything(java.lang.String description)
This matcher always evaluates to true.

Parameters:
description - A meaningful string used when describing itself.

any

public static <T> org.hamcrest.Matcher<T> any(java.lang.Class<T> type)
This matcher always evaluates to true. With type inference.