/*
 * Hotspot compile command annotations - http://compile-command-annotations.nicoulaj.net
 * Copyright © 2014-2019 Hotspot compile command annotations contributors
 *
 * 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 net.nicoulaj.compilecommand;

import net.nicoulaj.compilecommand.annotations.Inline;

import java.io.Serializable;
import java.util.List;

import static java.util.Arrays.asList;

public class IT01 {

    @Inline
    public IT01() {
    }

    public static void main(String... args) {
        for (int i = 0; i < 100000; i++) {
            final IT01 it = new IT01();
            it.method01();
            it.method02(true);
            it.method03();
            it.method04(asList("test"));
            it.method05(asList("test"));
            it.method06(new Double[]{});
            it.method07(asList("test"));
            it.method08("test");
            it.method09(true, (short) 0, (int) 0, (long) 0, (float) 0, (double) 0, (char) 0, (byte) 0);
            it.method10(true, (short) 0, (int) 0, (long) 0, (float) 0, (double) 0, (char) 0, (byte) 0);
        }
    }

    @Inline
    private static void method03() {
    }

    @Inline
    private void method01() {
    }

    @Inline
    private void method02(boolean arg1) {
    }

    @Inline
    private void method04(List<String> arg1) {
    }

    @Inline
    private double method05(List<String> arg1) {
        return 0;
    }

    @Inline
    private <T extends Serializable> void method06(T[] arg1) {
    }

    @Inline
    private <T extends Serializable> void method07(List<? extends T> arg1) {
    }

    @Inline
    private <T extends Serializable> T method08(T arg1) {
        return arg1;
    }

    @Inline
    private void method09(boolean arg1,
                          short arg2,
                          int arg3,
                          long arg4,
                          float arg5,
                          double arg6,
                          char arg7,
                          byte arg8) {
    }

    @Inline
    private void method10(Boolean arg1,
                          Short arg2,
                          Integer arg3,
                          Long arg4,
                          Float arg5,
                          Double arg6,
                          Character arg7,
                          Byte arg8) {
    }
}
