Package org.eclipse.jgit.transport
Class CredentialItem.YesNoType
- java.lang.Object
-
- org.eclipse.jgit.transport.CredentialItem
-
- org.eclipse.jgit.transport.CredentialItem.YesNoType
-
- Enclosing class:
- CredentialItem
public static class CredentialItem.YesNoType extends CredentialItem
An item whose value is a boolean choice, presented as Yes/No.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.eclipse.jgit.transport.CredentialItem
CredentialItem.CharArrayType, CredentialItem.InformationalMessage, CredentialItem.Password, CredentialItem.StringType, CredentialItem.Username, CredentialItem.YesNoType
-
-
Field Summary
Fields Modifier and Type Field Description private booleanvalue
-
Constructor Summary
Constructors Constructor Description YesNoType(java.lang.String promptText)Initialize a prompt for a single boolean answer.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclear()Clear the stored value, destroying it as much as possible.booleangetValue()voidsetValue(boolean newValue)Set the new value.-
Methods inherited from class org.eclipse.jgit.transport.CredentialItem
getPromptText, isValueSecure
-
-
-
-
Method Detail
-
clear
public void clear()
Description copied from class:CredentialItemClear the stored value, destroying it as much as possible.- Specified by:
clearin classCredentialItem
-
getValue
public boolean getValue()
- Returns:
- the current value
-
setValue
public void setValue(boolean newValue)
Set the new value.- Parameters:
newValue-
-
-