com.deevvi.device.detector.model.client.Library Maven / Gradle / Ivy
package com.deevvi.device.detector.model.client;
/**
* Model for library parser.
*/
public final class Library extends Client {
/**
* Constructor.
*/
private Library(String name, String rawRegex, String version) {
super(name, rawRegex, version);
}
/**
* Builder class.
*/
public static class Builder {
private String name;
private String rawRegex;
private String version;
public Builder() {
}
public Builder withName(String name) {
this.name = name;
return this;
}
public Builder withRawRegex(String rawRegex) {
this.rawRegex = rawRegex;
return this;
}
public Builder withVersion(String version) {
this.version = version;
return this;
}
public Library build() {
return new Library(name, rawRegex, version);
}
}
}