gpt4 book ai didi

com.koolearn.klibrary.core.resources.ZLResource.hasValue()方法的使用及代码示例

转载 作者:知者 更新时间:2024-03-13 12:06:04 26 4
gpt4 key购买 nike

本文整理了Java中com.koolearn.klibrary.core.resources.ZLResource.hasValue()方法的一些代码示例,展示了ZLResource.hasValue()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。ZLResource.hasValue()方法的具体详情如下:
包路径:com.koolearn.klibrary.core.resources.ZLResource
类名称:ZLResource
方法名:hasValue

ZLResource.hasValue介绍

暂无

代码示例

代码示例来源:origin: ydcx/KooReader

public Language(String code, ZLResource root) {
  //y 首次运行时加载所有,每次打开新书时都要调用,编辑语言时也调用
  LogInfo.i("language"+code+root.toString());
  Code = code;
  final ZLResource resource = root.getResource(code);
  Name = resource.hasValue() ? resource.getValue() : code;
  if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.GINGERBREAD) {
    mySortKey = normalize(Name);
  } else {
    mySortKey = Name.toLowerCase();
  }
  if (SYSTEM_CODE.equals(code) || ANY_CODE.equals(code)) {
    myOrder = Order.Before;
  } else if (MULTI_CODE.equals(code) || OTHER_CODE.equals(code)) {
    myOrder = Order.After;
  } else {
    myOrder = Order.Normal;
  }
}

代码示例来源:origin: Jiangzqts/EpubRead

public Language(String code, ZLResource root) {
  //y 首次运行时加载所有,每次打开新书时都要调用,编辑语言时也调用
  LogInfo.i("language"+code+root.toString());
  Code = code;
  final ZLResource resource = root.getResource(code);
  Name = resource.hasValue() ? resource.getValue() : code;
  if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.GINGERBREAD) {
    mySortKey = normalize(Name);
  } else {
    mySortKey = Name.toLowerCase();
  }
  if (SYSTEM_CODE.equals(code) || ANY_CODE.equals(code)) {
    myOrder = Order.Before;
  } else if (MULTI_CODE.equals(code) || OTHER_CODE.equals(code)) {
    myOrder = Order.After;
  } else {
    myOrder = Order.Normal;
  }
}

代码示例来源:origin: ydcx/KooReader

protected final void setList(String[] values) {
  String[] texts = new String[values.length];
  for (int i = 0; i < values.length; ++i) {
    final ZLResource resource = myValuesResource.getResource(values[i]);
    texts[i] = resource.hasValue() ? resource.getValue() : values[i];
  }
  setLists(values, texts);
}

代码示例来源:origin: Jiangzqts/EpubRead

protected final void setList(String[] values) {
  String[] texts = new String[values.length];
  for (int i = 0; i < values.length; ++i) {
    final ZLResource resource = myValuesResource.getResource(values[i]);
    texts[i] = resource.hasValue() ? resource.getValue() : values[i];
  }
  setLists(values, texts);
}

代码示例来源:origin: ydcx/KooReader

protected ZLCheckBoxPreference(Context context, ZLResource resource) {
    super(context);

    Resource = resource;
    setTitle(resource.getValue());
    final ZLResource onResource = resource.getResource("summaryOn");
    if (onResource.hasValue()) {
      setSummaryOn(onResource.getValue());
    }
    final ZLResource offResource = resource.getResource("summaryOff");
    if (offResource.hasValue()) {
      setSummaryOff(offResource.getValue());
    }
  }
}

代码示例来源:origin: Jiangzqts/EpubRead

protected ZLCheckBoxPreference(Context context, ZLResource resource) {
    super(context);

    Resource = resource;
    setTitle(resource.getValue());
    final ZLResource onResource = resource.getResource("summaryOn");
    if (onResource.hasValue()) {
      setSummaryOn(onResource.getValue());
    }
    final ZLResource offResource = resource.getResource("summaryOff");
    if (offResource.hasValue()) {
      setSummaryOff(offResource.getValue());
    }
  }
}

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com