package com.newfiber.modules.inspection.enums; import java.util.Arrays; import java.util.stream.Collectors; public enum EAndroidConfig { /** *安卓APP版本 APP_VERSION_ANDROID/ 安卓APP升级内容 UPDATE_NOTE_ANDROID/ 安卓APP下载地址 DOWNLOAD_URL_ANDROID */ APP_VERSION_ANDROID("APP_VERSION_ANDROID","安卓APP版本"), UPDATE_NOTE_ANDROID("UPDATE_NOTE_ANDROID","安卓APP升级内容"), DOWNLOAD_URL_ANDROID("DOWNLOAD_URL_ANDROID","安卓APP下载地址") ; private String key; private String value; public String getKey() { return key; } public void setKey(String key) { this.key = key; } public String getValue() { return value; } public void setValue(String value) { this.value = value; } EAndroidConfig(String key, String value) { this.key = key; this.value = value; } public static String getKeysForIn(){ return Arrays.stream(EAndroidConfig.values()).map(t->t.key).collect( Collectors.joining("','")); } public static void main(String[] args){ System.out.println(getKeysForIn()); } }