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

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

package com.deevvi.device.detector.model.client;

import java.util.regex.Pattern;

/**
 * Model for media player parser.
 */
public final class MediaPlayer extends Client {

    /**
     * Constructor.
     */
    private MediaPlayer(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 MediaPlayer build() {

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy