001/*
002 * Copyright (c) 2007-2016 Concurrent, Inc. All Rights Reserved.
003 *
004 * Project and contact information: http://www.cascading.org/
005 *
006 * This file is part of the Cascading project.
007 *
008 * Licensed under the Apache License, Version 2.0 (the "License");
009 * you may not use this file except in compliance with the License.
010 * You may obtain a copy of the License at
011 *
012 *     http://www.apache.org/licenses/LICENSE-2.0
013 *
014 * Unless required by applicable law or agreed to in writing, software
015 * distributed under the License is distributed on an "AS IS" BASIS,
016 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
017 * See the License for the specific language governing permissions and
018 * limitations under the License.
019 */
020
021package cascading.tuple.io;
022
023import java.util.List;
024
025import cascading.tuple.Fields;
026import cascading.tuple.Tuple;
027import cascading.tuple.Tuples;
028import cascading.tuple.util.Resettable1;
029
030/**
031 *
032 */
033public class ValueTuple extends Tuple implements Resettable1<Tuple>
034  {
035  /** A constant empty Tuple instance. This instance is immutable. */
036  public static final ValueTuple NULL = Tuples.asUnmodifiable( new ValueTuple() );
037
038  public ValueTuple( List<Object> elements )
039    {
040    super( elements );
041    }
042
043  public ValueTuple( Fields fields, List<Object> elements )
044    {
045    super( fields, elements );
046    }
047
048  public ValueTuple()
049    {
050    }
051
052  public ValueTuple( Tuple tuple )
053    {
054    super( tuple );
055    }
056
057  public ValueTuple( Object... values )
058    {
059    super( values );
060    }
061
062  @Override
063  public void reset( Tuple value )
064    {
065    elements = Tuple.elements( value );
066    }
067  }