PageRenderTime 441ms CodeModel.GetById 181ms app.highlight 2ms RepoModel.GetById 220ms app.codeStats 0ms

/flash/echo-nest-flash-api/src/com/ryanberdeen/echonest/api/v3/track/NumberWithConfidence.as

http://echo-nest-remix.googlecode.com/
ActionScript | 32 lines | 19 code | 5 blank | 8 comment | 0 complexity | df75b32035979b3841e5975970eb04e2 MD5 | raw file
 1/*
 2 * Copyright 2009 Ryan Berdeen. All rights reserved.
 3 * Distributed under the terms of the MIT License.
 4 * See accompanying file LICENSE.txt
 5 */
 6
 7package com.ryanberdeen.echonest.api.v3.track {
 8  /**
 9  * A number with an associated confidence value.
10  */
11  public class NumberWithConfidence {
12    private var _value:Number;
13    private var _confidence:Number;
14
15    public function NumberWithConfidence(value:Number, confidence:Number):void {
16      _value = value;
17      _confidence = confidence;
18    }
19
20    public function get value():Number {
21      return _value;
22    }
23
24    public function get confidence():Number {
25      return _confidence;
26    }
27
28    public function toString():String {
29      return value + ' (' + confidence + ')';
30    }
31  }
32}