alvinalexander.com | career | drupal | java | mac | mysql | perl | scala | uml | unix  

Scala example source code file (Arg.scala)

This example Scala source code file (Arg.scala) is included in the DevDaily.com "Java Source Code Warehouse" project. The intent of this project is to help you "Learn Java by Example" TM.

Java - Scala tags/keywords

arg, arg, int, int, pretty, pretty, string, t, t

The Scala Arg.scala source code

/*-------------------------------------------------------------------------*\
**  ScalaCheck                                                             **
**  Copyright (c) 2007-2010 Rickard Nilsson. All rights reserved.          **
**  http://www.scalacheck.org                                              **
**                                                                         **
**  This software is released under the terms of the Revised BSD License.  **
**  There is NO WARRANTY. See the file LICENSE for the full text.          **
\*-------------------------------------------------------------------------*/

package org.scalacheck

case class Arg[+T](
  label: String,
  arg: T,
  shrinks: Int,
  origArg: T
)(implicit prettyPrinter: T => Pretty) {
  lazy val prettyArg: Pretty = prettyPrinter(arg)
  lazy val prettyOrigArg: Pretty = prettyPrinter(origArg)
}

Other Scala examples (source code examples)

Here is a short list of links related to this Scala Arg.scala source code file:

... this post is sponsored by my books ...

#1 New Release!

FP Best Seller

 

new blog posts

 

Copyright 1998-2021 Alvin Alexander, alvinalexander.com
All Rights Reserved.

A percentage of advertising revenue from
pages under the /java/jwarehouse URI on this website is
paid back to open source projects.