LomBok and annotations

 package lombokeg;


import lombok.AllArgsConstructor;

import lombok.Builder;

import lombok.Data;

import lombok.NoArgsConstructor;



/*

 * Lombok is a 3rd party library , add it in pom.xml and download the jar and install in workspace eclipse location

 * it auto give the setters,getters,cnstructors with augs and no args- using the annotations like below 

 * 

 * 

 */


@Data

@Builder

@AllArgsConstructor

@NoArgsConstructor


public class User {


private String email;

private String username;

private String password;

private String phone;

private Name name;

private Address addres;


@Data

@Builder

@AllArgsConstructor

@NoArgsConstructor

public static class Name {

private String firstname;

private String lastname;

}


@Data

@Builder

@AllArgsConstructor

@NoArgsConstructor

public static class Address {

private String city;

private String street;

private int number;

private String zipcode;

private Gealocations glocation;


@Data

@Builder

@AllArgsConstructor

@NoArgsConstructor

public static class Gealocations {

private String lat;

private String longitude;

private Address addres;

}


}


}


Comments

Popular posts from this blog

Implicit and Explicit Waits,FluentWait,PageLoadTimeOut

A Interview Questions- selenium