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

com.silanis.esl.sdk.FieldId Maven / Gradle / Ivy

There is a newer version: 11.59.0
Show newest version
package com.silanis.esl.sdk;

import java.io.Serializable;

public class FieldId implements Serializable {
    private static final long serialVersionUID = 1L;

    private String id;

    FieldId() {
    }

    /**
     * 

Constructor of the PackageId class * * @param id the ID of the package. It cannot be null or empty */ public FieldId( String id ) { if ( id == null || id.trim().isEmpty() ) { throw new IllegalArgumentException( ( "id parameter cannot be null or empty" ) ); } this.id = id; } /** *

Accessor method used to get the package ID

* * @return the ID of the package */ public String getId() { return id; } @Override public String toString() { return id; } @Override public int hashCode() { return id.hashCode(); } @Override public boolean equals( Object other ) { if ( this == other ) { return true; } if ( !( other instanceof FieldId ) ) { return false; } FieldId fieldId = (FieldId) other; return fieldId.id.equals( id ); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy