SetterOnly

scalation.SetterOnly
class SetterOnly()

The SetterOnly class provides an example of how to create a setter method for a protected variable.

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Value members

Concrete methods

def setLength(length_: Double): Unit

Set the variable length to the new value length_ checking its validity. If the error/flaw is severe, may set length to a default value or throw an exception.

Set the variable length to the new value length_ checking its validity. If the error/flaw is severe, may set length to a default value or throw an exception.

Value parameters

length_

the new length to be assigned

Attributes