| %line | %branch | |||||||||
|---|---|---|---|---|---|---|---|---|---|---|
| org.apache.jcs.engine.stats.StatElement |
|
|
| 1 | package org.apache.jcs.engine.stats; |
|
| 2 | ||
| 3 | /* |
|
| 4 | * Licensed to the Apache Software Foundation (ASF) under one |
|
| 5 | * or more contributor license agreements. See the NOTICE file |
|
| 6 | * distributed with this work for additional information |
|
| 7 | * regarding copyright ownership. The ASF licenses this file |
|
| 8 | * to you under the Apache License, Version 2.0 (the |
|
| 9 | * "License"); you may not use this file except in compliance |
|
| 10 | * with the License. You may obtain a copy of the License at |
|
| 11 | * |
|
| 12 | * http://www.apache.org/licenses/LICENSE-2.0 |
|
| 13 | * |
|
| 14 | * Unless required by applicable law or agreed to in writing, |
|
| 15 | * software distributed under the License is distributed on an |
|
| 16 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY |
|
| 17 | * KIND, either express or implied. See the License for the |
|
| 18 | * specific language governing permissions and limitations |
|
| 19 | * under the License. |
|
| 20 | */ |
|
| 21 | ||
| 22 | import org.apache.jcs.engine.stats.behavior.IStatElement; |
|
| 23 | ||
| 24 | ||
| 25 | /** |
|
| 26 | * @author aaronsm |
|
| 27 | * |
|
| 28 | */ |
|
| 29 | 1250601 | public class StatElement |
| 30 | implements IStatElement |
|
| 31 | { |
|
| 32 | ||
| 33 | 1254996 | private String name = null; |
| 34 | ||
| 35 | 1249264 | private String data = null; |
| 36 | ||
| 37 | /* |
|
| 38 | * (non-Javadoc) |
|
| 39 | * |
|
| 40 | * @see org.apache.jcs.engine.stats.behavior.IStatElement#getName() |
|
| 41 | */ |
|
| 42 | public String getName() |
|
| 43 | { |
|
| 44 | 0 | return name; |
| 45 | } |
|
| 46 | ||
| 47 | /* |
|
| 48 | * (non-Javadoc) |
|
| 49 | * |
|
| 50 | * @see org.apache.jcs.engine.stats.behavior.IStatElement#setName(java.lang.String) |
|
| 51 | */ |
|
| 52 | public void setName( String name ) |
|
| 53 | { |
|
| 54 | 1249015 | this.name = name; |
| 55 | 1255740 | } |
| 56 | ||
| 57 | /* |
|
| 58 | * (non-Javadoc) |
|
| 59 | * |
|
| 60 | * @see org.apache.jcs.engine.stats.behavior.IStatElement#getData() |
|
| 61 | */ |
|
| 62 | public String getData() |
|
| 63 | { |
|
| 64 | 0 | return data; |
| 65 | } |
|
| 66 | ||
| 67 | /* |
|
| 68 | * (non-Javadoc) |
|
| 69 | * |
|
| 70 | * @see org.apache.jcs.engine.stats.behavior.IStatElement#setData(java.lang.String) |
|
| 71 | */ |
|
| 72 | public void setData( String data ) |
|
| 73 | { |
|
| 74 | 1248744 | this.data = data; |
| 75 | 1251049 | } |
| 76 | ||
| 77 | /* |
|
| 78 | * (non-Javadoc) |
|
| 79 | * |
|
| 80 | * @see java.lang.Object#toString() |
|
| 81 | */ |
|
| 82 | public String toString() |
|
| 83 | { |
|
| 84 | 1249253 | StringBuffer buf = new StringBuffer(); |
| 85 | 1256347 | buf.append( name + " = " + data ); |
| 86 | 1251819 | return buf.toString(); |
| 87 | } |
|
| 88 | } |
| This report is generated by jcoverage, Maven and Maven JCoverage Plugin. |