Search this API

y.util
Class DefaultMutableValue

java.lang.Object
  extended by y.util.DefaultMutableValue
All Implemented Interfaces:
MutableValue, Value, ValueSettable

public class DefaultMutableValue
extends java.lang.Object
implements MutableValue

General purpose value object that obeys the Value and ValueSettable contracts.

 
Your browser does not support SVG content.

Constructor Summary
protected DefaultMutableValue(double value)
          Creates a new DefaultMutableValue for the specified data.
 
Method Summary
static DefaultMutableValue create()
          Creates a new DefaultMutableValue with data 0.0.
static DefaultMutableValue create(double value)
          Creates a new DefaultMutableValue for the specified data.
 double getValue()
          Returns the value object's data.
 void setValue(double value)
          Specifies the value object's data.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultMutableValue

protected DefaultMutableValue(double value)
Creates a new DefaultMutableValue for the specified data.

Parameters:
value - the data
Method Detail

getValue

public double getValue()
Returns the value object's data.

Specified by:
getValue in interface Value
Returns:
the value object's data.

setValue

public void setValue(double value)
Specifies the value object's data.

Specified by:
setValue in interface ValueSettable
Parameters:
value - the data

create

public static DefaultMutableValue create(double value)
Creates a new DefaultMutableValue for the specified data.

Parameters:
value - the data
Returns:
a new DefaultMutableValue for the specified data.

create

public static DefaultMutableValue create()
Creates a new DefaultMutableValue with data 0.0.

Returns:
a new DefaultMutableValue with data 0.0.

© Copyright 2000-2022,
yWorks GmbH.
All rights reserved.