@@ -0,0 +1,2659 @@
+/*%0A * Copyright 2017 Open mHealth%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 */%0A%0Apackage org.openmhealth.schema.domain.omh;%0A%0Aimport com.fasterxml.jackson.annotation.JsonInclude;%0Aimport com.fasterxml.jackson.databind.PropertyNamingStrategy.SnakeCaseStrategy;%0Aimport com.fasterxml.jackson.databind.annotation.JsonNaming;%0Aimport org.openmhealth.schema.serializer.SerializationConstructor;%0A%0Aimport java.util.Objects;%0A%0Aimport static com.fasterxml.jackson.annotation.JsonInclude.Include.NON_NULL;%0Aimport static com.google.common.base.Preconditions.checkNotNull;%0A%0A%0A/**%0A * A speed measurement.%0A *%0A * @author Emerson Farrugia%0A * @version 1.0%0A * @see %3Ca href=%22http://www.openmhealth.org/documentation/#/schema-docs/schema-library/schemas/omh_speed%22%3Espeed%3C/a%3E%0A */%0A@JsonInclude(NON_NULL)%0A@JsonNaming(SnakeCaseStrategy.class)%0Apublic class Speed extends Measure %7B%0A%0A    public static final SchemaId SCHEMA_ID = new SchemaId(OMH_NAMESPACE, %22speed%22, %221.0%22);%0A%0A    private SpeedUnitValue speed;%0A%0A%0A    @SerializationConstructor%0A    protected Speed() %7B%0A    %7D%0A%0A    public static class Builder extends Measure.Builder%3CSpeed, Builder%3E %7B%0A%0A        private SpeedUnitValue speed;%0A%0A        public Builder(SpeedUnitValue speed) %7B%0A%0A            checkNotNull(speed, %22A speed hasn't been specified.%22);%0A%0A            this.speed = speed;%0A        %7D%0A%0A        @Override%0A        public Speed build() %7B%0A            return new Speed(this);%0A        %7D%0A    %7D%0A%0A    private Speed(Builder builder) %7B%0A        super(builder);%0A%0A        this.speed = builder.speed;%0A    %7D%0A%0A    public SpeedUnitValue getSpeed() %7B%0A        return speed;%0A    %7D%0A%0A    @Override%0A    public SchemaId getSchemaId() %7B%0A        return SCHEMA_ID;%0A    %7D%0A%0A    @Override%0A    public boolean equals(Object o) %7B%0A%0A        if (this == o) %7B%0A            return true;%0A        %7D%0A%0A        if (o == null %7C%7C getClass() != o.getClass()) %7B%0A            return false;%0A        %7D%0A%0A        if (!super.equals(o)) %7B%0A            return false;%0A        %7D%0A%0A        Speed speed1 = (Speed) o;%0A%0A        return Objects.equals(speed, speed1.speed);%0A    %7D%0A%0A    @Override%0A    public int hashCode() %7B%0A        return Objects.hash(super.hashCode(), speed);%0A    %7D%0A%7D%0A

Add speed measure