comparison src/org/dancres/blitz/stats/InstanceSwitch.java @ 0:3dc0c5604566

Initial checkin of blitz 2.0 fcs - no installer yet.
author Dan Creswell <dan.creswell@gmail.com>
date Sat, 21 Mar 2009 11:00:06 +0000
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:3dc0c5604566
1 package org.dancres.blitz.stats;
2
3 /**
4 Used to enable/disable generation of instance counts
5 */
6 public class InstanceSwitch implements Switch {
7 public static final String ALL_TYPES = "*";
8
9 private boolean isOnOff;
10 private String theType;
11
12 public InstanceSwitch(String aType, boolean onOff) {
13 theType = aType;
14 isOnOff = onOff;
15 }
16
17 public String getType() {
18 return theType;
19 }
20
21 public boolean isOn() {
22 return isOnOff;
23 }
24
25 public boolean isWildcard() {
26 return (theType.equals(ALL_TYPES));
27 }
28 }