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.
|
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 EntryBuilder tags(List<String> tags)
public EntryBuilder addTag(String tag)
public EntryBuilder foregroundColor(String foregroundColor)
public EntryBuilder backgroundColor(String backgroundColor)
public EntryBuilder addAttachment(String key, int id)
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 EntryContractpublic List<String> getTags()
getTags in interface EntryContractpublic String getForegroundColor()
getForegroundColor in interface EntryContractpublic String getBackgroundColor()
getBackgroundColor in interface EntryContractpublic List<Attachment> getAttachmentList()
getAttachmentList in interface EntryContractCopyright © 2018. All rights reserved.