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

Class Avatar

src/main/java/com/github/javafaker/Avatar.java:3–15  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1package com.github.javafaker;
2
3public class Avatar {
4 private final Faker faker;
5 private final String baseUrl;
6
7 protected Avatar(Faker faker) {
8 this.faker = faker;
9 this.baseUrl = "https://s3.amazonaws.com/uifaces/faces/twitter/";
10 }
11
12 public String image() {
13 return baseUrl + faker.fakeValuesService().resolve("internet.avatar", this, faker);
14 }
15}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected