// Decompiled by Jad v1.5.8e. Copyright 2001 Pavel Kouznetsov. // Jad home page: http://www.geocities.com/kpdus/jad.html // Decompiler options: braces fieldsfirst space lnc package com.olio.data.object.user; // Referenced classes of package com.olio.data.object.user: // Location public class LocationBuilder { private String displayAddress; private String displayName; private String googlePlaceId; private double latitude; private Location.LocationType locationType; private double longitude; private LocationBuilder() { } public static LocationBuilder aLocation() { return new LocationBuilder(); } public Location build() { Location location = new Location(); location.setDisplayName(displayName); location.setLocationType(locationType); location.setGooglePlaceId(googlePlaceId); location.setDisplayAddress(displayAddress); location.setLatitude(latitude); location.setLongitude(longitude); return location; } public LocationBuilder but() { return aLocation().setDisplayName(displayName).setLocationType(locationType).setGooglePlaceId(googlePlaceId).setDisplayAddress(displayAddress).setLatitude(latitude).setLongitude(longitude); } public LocationBuilder setDisplayAddress(String s) { displayAddress = s; return this; } public LocationBuilder setDisplayName(String s) { displayName = s; return this; } public LocationBuilder setGooglePlaceId(String s) { googlePlaceId = s; return this; } public LocationBuilder setLatitude(double d) { latitude = d; return this; } public LocationBuilder setLocationType(Location.LocationType locationtype) { locationType = locationtype; return this; } public LocationBuilder setLongitude(double d) { longitude = d; return this; } }