File: JsonLiteral.java

package info (click to toggle)
bbmap 39.20%2Bdfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 26,008 kB
  • sloc: java: 312,743; sh: 18,096; python: 5,247; ansic: 2,074; perl: 96; makefile: 39; xml: 38
file content (20 lines) | stat: -rwxr-xr-x 308 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
package json;

import shared.Tools;

public class JsonLiteral {
	
	public JsonLiteral(String s_){
		s=s_;
	}
	
	public JsonLiteral(double value, int decimals){
		s=Tools.format("%."+decimals+"f", value);
	}
	
	@Override
	public String toString(){return s;}
	
	private final String s;
	
}