org.scalatest.matchers.Matchers

class LengthWrapper

[source: org/scalatest/matchers/Matchers.scala]

abstract class LengthWrapper
extends AnyRef
This class is part of the ScalaTest matchers DSL. Please see the documentation for ShouldMatchers or MustMatchers for an overview of the matchers DSL.

Subclasses of this abstract class are used as the result of implicit conversions from the various structural types that are considered to represent length: length or getLength methods or fields that return Int or Long. This enables the have length (7) syntax to be used with any object that has a length. The implicit conversion methods that result in this type are:

Author
Bill Venners
Method Summary
abstract def length : Long
Methods inherited from AnyRef
getClass, hashCode, equals, clone, toString, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized
Methods inherited from Any
==, !=, isInstanceOf, asInstanceOf
Method Details
abstract def length : Long


Copyright (C) 2001-2010 Artima, Inc. All rights reserved.