Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;

public class Main {
    /**
     * for input
     */
    private static String[] FIXED_FIELD = { "transaction_name", "user_id", "log_id", "function_name",
            "system_timestamp", "function_id" };

    private static boolean isCommonInput(Object key) {
        if (key == null)
            return false;
        for (int i = 0; i < FIXED_FIELD.length; i++) {
            if (key.equals(FIXED_FIELD[i])) {
                return true;
            }
        }

        return false;

    }
}