Top Description Fields Constructors Methods
liquibase

public Class Contexts

extends Object
Class Inheritance
Imports
liquibase.util.StringUtil, java.util.*

Wrapper for list of contexts.

Contexts in Liquibase are expressions you can add to changesets to control which will be executed in any particular migration run. Any string can be used for the context name and they are checked case-insensitively.

See Also
contexts in documentation

Field Summary

Modifier and TypeField and Description
private final HashSet<String>

Constructor Summary

AccessConstructor and Description
public
public
Contexts(String... contexts)

public
Contexts(String contexts)

public

Method Summary

Modifier and TypeMethod and Description
public boolean
add(String context)

public Set<String>
public boolean
private void
public boolean
remove(String context)

public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAllwaitwaitwait

Field Detail

contextStoreback to summary
private final HashSet<String> contextStore

Constructor Detail

Contextsback to summary
public Contexts()
Contextsback to summary
public Contexts(String... contexts)
Contextsback to summary
public Contexts(String contexts)
Contextsback to summary
public Contexts(Collection<String> contexts)

Method Detail

addback to summary
public boolean add(String context)
getContextsback to summary
public Set<String> getContexts()
isEmptyback to summary
public boolean isEmpty()
parseContextStringback to summary
private void parseContextString(String contexts)
removeback to summary
public boolean remove(String context)
toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object. Satisfying this method's contract implies a non-null result must be returned.

Returns:String

a string representation of the object

Annotations
@Override