@@ -0,0 +1,1512 @@
+// Copyright 2014 Boundary, Inc.%0A//%0A// Licensed under the Apache License, Version 2.0 (the %22License%22);%0A// you may not use this file except in compliance with the License.%0A// You may obtain a copy of the License at%0A//%0A//     http://www.apache.org/licenses/LICENSE-2.0%0A//%0A// Unless required by applicable law or agreed to in writing, software%0A// distributed under the License is distributed on an %22AS IS%22 BASIS,%0A// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.%0A// See the License for the specific language governing permissions and%0A// limitations under the License.%0A%0Apackage com.boundary.plugin.sdk;%0A%0Aimport java.util.Date;%0A%0Apublic class MeasurementBuilder %7B%0A%09%0A    private String name;%0A    private Number value;%0A    private String source;%0A    private Date timestamp;%0A    %0A    public MeasurementBuilder() %7B%0A    %09reset();%0A    %7D%0A%0A%09public MeasurementBuilder setName(String name) %7B%0A%09%09this.name = name;%0A%09%09return this;%0A%09%7D%0A%0A%09public MeasurementBuilder setValue(Number value) %7B%0A%09%09this.value = value;%0A%09%09return this;%0A%09%7D%0A%0A%09public MeasurementBuilder setSource(String source) %7B%0A%09%09this.source = source;%0A%09%09return this;%0A%09%7D%0A%0A%09public MeasurementBuilder setTimestamp(Date timestamp) %7B%0A%09%09this.timestamp = timestamp;%0A%09%09return this;%0A%09%7D%0A%09%0A%09public void reset() %7B%0A%09    this.name = %22%22;%0A%09    this.value = 0;%0A%09    this.source = %22%22;%0A%09    this.timestamp = null;%0A%09%7D%0A  %0A%09public Measurement build() %7B%0A%09%09Measurement measurement = new Measurement(this.name,this.value,this.source,this.timestamp);%0A%09%09return measurement;%0A%09%7D%0A%7D%0A

Add builder for measurements