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

open.source.exchange.model.ExLocaleLanguageRange Maven / Gradle / Ivy

package open.source.exchange.model;

import java.io.Serializable;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonInclude;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@JsonInclude(JsonInclude.Include.NON_EMPTY)
@JsonIgnoreProperties(ignoreUnknown = true)
public class ExLocaleLanguageRange extends ExBase implements Serializable {

	private String range;

	// from 0.0 till 1.0
	private double weight;

	public ExLocaleLanguageRange(ExBase exBase) {

		if (null != exBase) {
			this.setClazz(exBase.getClazz());
			this.setHashCode(exBase.getHashCode());
			this.setToString(exBase.getToString());
		}
	}

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy