public class EntryBuilder extends Object implements EntryContract
Entry objects.| Constructor and Description |
|---|
EntryBuilder()
Creates a new builder with a random UUID.
|
EntryBuilder(Entry entry)
Initializes the builder with values from the given entry.
|
EntryBuilder(String title)
Creates a new builder with the given title.
|
EntryBuilder(UUID uuid)
Creates a new builder with the given UUID.
|
| Modifier and Type | Method and Description |
|---|---|
Entry |
build()
Builds a new entry with the values from the builder.
|
Entry |
buildWithHistory()
Builds a new entry and place the original one in the history list.
|
EntryBuilder |
clearHistory() |
EntryBuilder |
customIconUuid(UUID uuid) |
UUID |
getCustomIconUUID() |
List<Property> |
getCustomPropertyList() |
History |
getHistory() |
byte[] |
getIconData() |
int |
getIconId() |
String |
getNotes() |
String |
getPassword() |
Times |
getTimes() |
String |
getTitle() |
String |
getUrl() |
String |
getUsername() |
UUID |
getUuid() |
EntryBuilder |
history(History history) |
EntryBuilder |
iconData(byte[] iconData) |
EntryBuilder |
iconId(int iconId) |
EntryBuilder |
notes(String notes) |
EntryBuilder |
password(String password) |
EntryBuilder |
times(Times times) |
EntryBuilder |
title(String title) |
EntryBuilder |
url(String url) |
EntryBuilder |
username(String username) |
EntryBuilder |
uuid(UUID uuid) |
public EntryBuilder()
public EntryBuilder(UUID uuid)
uuid - the UUID which should be usedpublic EntryBuilder(String title)
title - the title which should be usedpublic EntryBuilder(Entry entry)
entry - the values from this will initialize the builderpublic EntryBuilder title(String title)
public EntryBuilder uuid(UUID uuid)
public EntryBuilder username(String username)
public EntryBuilder password(String password)
public EntryBuilder notes(String notes)
public EntryBuilder history(History history)
public EntryBuilder url(String url)
public EntryBuilder iconData(byte[] iconData)
public EntryBuilder iconId(int iconId)
public EntryBuilder customIconUuid(UUID uuid)
public EntryBuilder times(Times times)
public EntryBuilder clearHistory()
public Entry build()
public Entry buildWithHistory()
public UUID getUuid()
getUuid in interface EntryContractpublic byte[] getIconData()
getIconData in interface EntryContractpublic int getIconId()
getIconId in interface EntryContractpublic UUID getCustomIconUUID()
getCustomIconUUID in interface EntryContractpublic String getTitle()
getTitle in interface EntryContractpublic String getUsername()
getUsername in interface EntryContractpublic String getPassword()
getPassword in interface EntryContractpublic String getNotes()
getNotes in interface EntryContractpublic String getUrl()
getUrl in interface EntryContractpublic List<Property> getCustomPropertyList()
getCustomPropertyList in interface EntryContractpublic History getHistory()
getHistory in interface EntryContractpublic Times getTimes()
getTimes in interface EntryContractCopyright © 2016. All rights reserved.