/*
 * Copyright 2016-2018 shardingsphere.io.
 * <p>
 * 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.
 * </p>
 */

package io.shardingsphere.core.keygen;

/**
 * Key generator interface.
 *
 * @author zhangliang
 * @author panjuan
 */
public interface KeyGenerator {
    
    /**
     * Generate key.
     * 
     * @return generated key
     */
    Comparable<?> generateKey();
}

@@ -653,16 +653,46 @@
 eygen;%0A%0A
+import java.util.Properties;%0A%0A
 /**%0A * K
@@ -907,10 +907,261 @@
 eKey();%0A
+    %0A    /**%0A     * Get properties.%0A     * %0A     * @return The properties of key generator%0A     */%0A    Properties getProperties();%0A    %0A    /**%0A     * Set Properties.%0A     * %0A     * @param props props%0A     */%0A    void setProperties(Properties props);%0A
 %7D%0A

add interface