All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.deevvi.device.detector.model.client.Library Maven / Gradle / Ivy

Go to download

The aim of this library is to fetch as much as possible information from a user-agent string.

There is a newer version: 1.14.0
Show newest version
package com.deevvi.device.detector.model.client;

import java.util.regex.Pattern;

/**
 * Model for library parser.
 */
public final class Library extends Client {


    /**
     * Constructor.
     */
    private Library(String name, Pattern pattern, String version) {

        super(name, pattern, version);
    }

    /**
     * Builder class.
     */
    public static class Builder {
        private String name;
        private Pattern pattern;
        private String version;

        public Builder() {
        }

        public Builder withName(String name) {

            this.name = name;
            return this;
        }

        public Builder withPattern(Pattern pattern) {

            this.pattern = pattern;
            return this;
        }

        public Builder withVersion(String version) {

            this.version = version;
            return this;
        }


        public Library build() {

            return new Library(name, pattern, version);
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy