/*
 * Copyright (C) 2016 Uriel Sarrazin
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package com.urielsarrazin.ppc.core;

import java.util.Arrays;
import java.util.List;

public enum BreathingMix {

    AIR(
            BreathingMixComponent.create(Gas.O2, Pourcentage.create(21D)),
            BreathingMixComponent.create(Gas.N2, Pourcentage.create(79D))
    ),

    NITROX_32_68(
            BreathingMixComponent.create(Gas.O2, Pourcentage.create(32D)),
            BreathingMixComponent.create(Gas.N2, Pourcentage.create(68D))
    ),

    NITROX_36_64(
            BreathingMixComponent.create(Gas.O2, Pourcentage.create(36D)),
            BreathingMixComponent.create(Gas.N2, Pourcentage.create(64D))
    ),

    NITROX_40_60(
            BreathingMixComponent.create(Gas.O2, Pourcentage.create(40D)),
            BreathingMixComponent.create(Gas.N2, Pourcentage.create(60D))
    ),

    OXYGEN(
            BreathingMixComponent.create(Gas.O2, Pourcentage.create(100D))
    ),

    TRIMIX_20_25(
            BreathingMixComponent.create(Gas.O2, Pourcentage.create(20D)),
            BreathingMixComponent.create(Gas.He, Pourcentage.create(25D)),
            BreathingMixComponent.create(Gas.N2, Pourcentage.create(55D))
    );

    private final List<BreathingMixComponent> breathingMixComponents;

    BreathingMix(BreathingMixComponent... breathingMixComponents) {
        this.breathingMixComponents = Arrays.asList(breathingMixComponents);
    }

    public List<BreathingMixComponent> getBreathingMixComponents() {
        return breathingMixComponents;
    }
}

@@ -678,16 +678,65 @@
 .List;%0A%0A
+import static com.urielsarrazin.ppc.core.Gas.*;%0A%0A
 public e
@@ -797,36 +797,32 @@
 omponent.create(
-Gas.
 O2, Pourcentage.
@@ -868,36 +868,32 @@
 omponent.create(
-Gas.
 N2, Pourcentage.
@@ -964,36 +964,32 @@
 omponent.create(
-Gas.
 O2, Pourcentage.
@@ -1035,36 +1035,32 @@
 omponent.create(
-Gas.
 N2, Pourcentage.
@@ -1131,36 +1131,32 @@
 omponent.create(
-Gas.
 O2, Pourcentage.
@@ -1202,36 +1202,32 @@
 omponent.create(
-Gas.
 N2, Pourcentage.
@@ -1298,36 +1298,32 @@
 omponent.create(
-Gas.
 O2, Pourcentage.
@@ -1369,36 +1369,32 @@
 omponent.create(
-Gas.
 N2, Pourcentage.
@@ -1459,36 +1459,32 @@
 omponent.create(
-Gas.
 O2, Pourcentage.
@@ -1564,20 +1564,16 @@
 .create(
-Gas.
 O2, Pour
@@ -1635,20 +1635,16 @@
 .create(
-Gas.
 He, Pour
@@ -1706,20 +1706,16 @@
 .create(
-Gas.
 N2, Pour

Use of static imports