MCPcopy Create free account
hub / github.com/DiUS/java-faker / flag

Method flag

src/main/java/com/github/javafaker/Nation.java:30–41  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

28 }
29
30 public String flag() {
31 @SuppressWarnings("unchecked")
32 List<Integer> flagInts = (List<Integer>) faker.fakeValuesService().fetch("nation.flag");
33
34 ByteBuffer byteBuffer = MappedByteBuffer.allocate(flagInts.size());
35
36 for (Integer flagInt : flagInts) {
37 byteBuffer.put(flagInt.byteValue());
38 }
39
40 return new String(byteBuffer.array(), UTF8_CHARSET);
41 }
42
43}

Callers

nothing calls this directly

Calls 3

fetchMethod · 0.80
fakeValuesServiceMethod · 0.80
sizeMethod · 0.45

Tested by

no test coverage detected