FileDocCategorySizeDatePackage
Volume.javaAPI DocExample672Thu Oct 24 20:14:26 BST 2002None

Volume

public class Volume extends Object

Fields Summary
private int
volume
Constructors Summary
public Volume(int v)

 setVolume(v); 
public Volume()

 this(50); 
Methods Summary
public intgetVolume()

 return volume; 
public voidsetVolume(int v)

 volume = (v < 0 ? 0 : v > 100 ? 100 : v); 
public voidsetVolume(java.lang.Object v)

 
    if (v instanceof String) {
      setVolume(Integer.parseInt((String)v));
    }
    else if (v instanceof Number) {
      setVolume(((Number)v).intValue());
    }
    else if (v instanceof Volume) {
      setVolume(((Volume)v).getVolume());
    }
  
public java.lang.StringtoString()

 return String.valueOf(volume);