本文整理了Java中org.robolectric.util.Join.join()
方法的一些代码示例,展示了Join.join()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Join.join()
方法的具体详情如下:
包路径:org.robolectric.util.Join
类名称:Join
方法名:join
暂无
代码示例来源:origin: robolectric/robolectric
@Override
public String toString() {
return className + "." + methodName + "(" + Join.join(", ", (Object[]) paramTypes) + ")";
}
代码示例来源:origin: robolectric/robolectric
private static String stringify(BitmapFactory.Options options) {
if (options == null) return "";
List<String> opts = new ArrayList<>();
if (options.inJustDecodeBounds) opts.add("inJustDecodeBounds");
if (options.inSampleSize > 1) opts.add("inSampleSize=" + options.inSampleSize);
return Join.join(", ", opts);
}
代码示例来源:origin: robolectric/robolectric
private String formatColorMatric(ColorMatrix colorMatrix) {
List<String> floats = new ArrayList<>();
for (float f : colorMatrix.getArray()) {
String format = String.format("%.2f", f);
format = format.replace(".00", "");
floats.add(format);
}
return Join.join(",", floats);
}
代码示例来源:origin: robolectric/robolectric
/**
* Return a {@link Properties} file for the given package name, or {@code null} if none is available.
*
* @since 3.2
*/
protected Properties getConfigProperties(String packageName) {
List<String> packageParts = new ArrayList<>(Arrays.asList(packageName.split("\\.")));
packageParts.add(RobolectricTestRunner.CONFIG_PROPERTIES);
final String resourceName = Join.join("/", packageParts);
try (InputStream resourceAsStream = getResourceAsStream(resourceName)) {
if (resourceAsStream == null) return null;
Properties properties = new Properties();
properties.load(resourceAsStream);
return properties;
} catch (IOException e) {
throw new RuntimeException(e);
}
}
代码示例来源:origin: robolectric/robolectric
@Override
protected void onProgressUpdate(String... values) {
transcript.add("onProgressUpdate " + Join.join(", ", (Object[]) values));
}
代码示例来源:origin: robolectric/robolectric
@Override
protected String doInBackground(String... strings) {
transcript.add("doInBackground " + Join.join(", ", (Object[]) strings));
return "c";
}
代码示例来源:origin: org.robolectric/robolectric
/**
* Return a {@link Properties} file for the given package name, or {@code null} if none is available.
*
* @since 3.2
*/
protected Properties getConfigProperties(String packageName) {
List<String> packageParts = new ArrayList<>(Arrays.asList(packageName.split("\\.")));
packageParts.add(RobolectricTestRunner.CONFIG_PROPERTIES);
final String resourceName = Join.join("/", packageParts);
try (InputStream resourceAsStream = getResourceAsStream(resourceName)) {
if (resourceAsStream == null) return null;
Properties properties = new Properties();
properties.load(resourceAsStream);
return properties;
} catch (IOException e) {
throw new RuntimeException(e);
}
}
代码示例来源:origin: org.robolectric/robolectric-sandbox
@Override
public String toString() {
return className + "." + methodName + "(" + Join.join(", ", (Object[]) paramTypes) + ")";
}
代码示例来源:origin: org.robolectric/shadows-core-v23
private static String stringify(BitmapFactory.Options options) {
if (options == null) return "";
List<String> opts = new ArrayList<>();
if (options.inJustDecodeBounds) opts.add("inJustDecodeBounds");
if (options.inSampleSize > 1) opts.add("inSampleSize=" + options.inSampleSize);
return Join.join(", ", opts);
}
代码示例来源:origin: org.robolectric/framework
private static String stringify(BitmapFactory.Options options) {
if (options == null) return "";
List<String> opts = new ArrayList<>();
if (options.inJustDecodeBounds) opts.add("inJustDecodeBounds");
if (options.inSampleSize > 1) opts.add("inSampleSize=" + options.inSampleSize);
return Join.join(", ", opts);
}
代码示例来源:origin: org.robolectric/shadows-framework
private static String stringify(BitmapFactory.Options options) {
if (options == null) return "";
List<String> opts = new ArrayList<>();
if (options.inJustDecodeBounds) opts.add("inJustDecodeBounds");
if (options.inSampleSize > 1) opts.add("inSampleSize=" + options.inSampleSize);
return Join.join(", ", opts);
}
代码示例来源:origin: org.robolectric/shadows-core
private static String stringify(BitmapFactory.Options options) {
if (options == null) return "";
List<String> opts = new ArrayList<>();
if (options.inJustDecodeBounds) opts.add("inJustDecodeBounds");
if (options.inSampleSize > 1) opts.add("inSampleSize=" + options.inSampleSize);
return Join.join(", ", opts);
}
代码示例来源:origin: org.robolectric/shadows-framework
private String formatColorMatric(ColorMatrix colorMatrix) {
List<String> floats = new ArrayList<>();
for (float f : colorMatrix.getArray()) {
String format = String.format("%.2f", f);
format = format.replace(".00", "");
floats.add(format);
}
return Join.join(",", floats);
}
代码示例来源:origin: org.robolectric/resources
@Override public FsFile join(String... pathParts) {
return new JarFsFile(path + "/" + Join.join("/", asList(pathParts)));
}
代码示例来源:origin: org.robolectric/robolectric-resources
@Override public FsFile join(String... pathParts) {
return new JarFsFile(path + "/" + Join.join("/", asList(pathParts)));
}
代码示例来源:origin: org.robolectric/shadows-core
@Override @Implementation
public String toString() {
List<String> floats = new ArrayList<>();
for (float f : getMatrix()) {
String format = String.format("%.2f", f);
format = format.replace(".00", "");
floats.add(format);
}
return Join.join(",", floats);
}
代码示例来源:origin: org.robolectric/shadows-core-v23
@Override @Implementation
public String toString() {
List<String> floats = new ArrayList<>();
for (float f : getMatrix()) {
String format = String.format("%.2f", f);
format = format.replace(".00", "");
floats.add(format);
}
return Join.join(",", floats);
}
代码示例来源:origin: org.robolectric/framework
@Override @Implementation
public String toString() {
List<String> floats = new ArrayList<>();
for (float f : getMatrix()) {
String format = String.format("%.2f", f);
format = format.replace(".00", "");
floats.add(format);
}
return Join.join(",", floats);
}
内容来源于网络,如有侵权,请联系作者删除!