org.modeshape.graph.query.validate
Class ImmutableKey

java.lang.Object
  extended by org.modeshape.graph.query.validate.ImmutableKey
All Implemented Interfaces:
Schemata.Key

public class ImmutableKey
extends Object
implements Schemata.Key


Method Summary
 Set<Schemata.Column> getColumns()
          Get the columns that make up this key.
 boolean hasColumns(Iterable<Schemata.Column> columns)
          Determine whether this key contains exactly those columns listed.
 boolean hasColumns(Schemata.Column... columns)
          Determine whether this key contains exactly those columns listed.
 String toString()
          
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

getColumns

public Set<Schemata.Column> getColumns()
Get the columns that make up this key.

Specified by:
getColumns in interface Schemata.Key
Returns:
the key's columns; immutable and never null
See Also:
Schemata.Key.getColumns()

hasColumns

public boolean hasColumns(Schemata.Column... columns)
Determine whether this key contains exactly those columns listed.

Specified by:
hasColumns in interface Schemata.Key
Parameters:
columns - the columns for the key
Returns:
true if this key contains exactly the supplied columns, or false otherwise
See Also:
Schemata.Key.hasColumns(org.modeshape.graph.query.validate.Schemata.Column[])

hasColumns

public boolean hasColumns(Iterable<Schemata.Column> columns)
Determine whether this key contains exactly those columns listed.

Specified by:
hasColumns in interface Schemata.Key
Parameters:
columns - the columns for the key
Returns:
true if this key contains exactly the supplied columns, or false otherwise
See Also:
Schemata.Key.hasColumns(java.lang.Iterable)

toString

public String toString()

Overrides:
toString in class Object
See Also:
Object.toString()


Copyright © 2008-2010 JBoss, a division of Red Hat. All Rights Reserved.