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

com.glookast.commons.capture.ComPort Maven / Gradle / Ivy

Go to download

Helper classes with Jackson annotations for easy interfacing with Glookast Products

There is a newer version: 3.1.6
Show newest version
package com.glookast.commons.capture;

import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonTypeInfo;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@NoArgsConstructor
@AllArgsConstructor
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, defaultImpl = ComPort.class)
public class ComPort
{
    protected String name;
    protected ComPortType portType;
    protected boolean isOwned;
    protected String ownedBy;

    public ComPort(ComPort comPort)
    {
        this.name = comPort.name;
        this.portType = comPort.portType;
        this.isOwned = comPort.isOwned;
        this.ownedBy = comPort.ownedBy;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy