Spring Data Couchbase

org.springframework.data.couchbase.core.convert
Enum DateConverters.LocalDateTimeToLongConverter

java.lang.Object
  extended by java.lang.Enum<DateConverters.LocalDateTimeToLongConverter>
      extended by org.springframework.data.couchbase.core.convert.DateConverters.LocalDateTimeToLongConverter
All Implemented Interfaces:
Serializable, Comparable<DateConverters.LocalDateTimeToLongConverter>, Converter<org.joda.time.LocalDateTime,Long>
Enclosing class:
DateConverters

@WritingConverter
public static enum DateConverters.LocalDateTimeToLongConverter
extends Enum<DateConverters.LocalDateTimeToLongConverter>
implements Converter<org.joda.time.LocalDateTime,Long>


Enum Constant Summary
INSTANCE
           
 
Method Summary
 Long convert(org.joda.time.LocalDateTime source)
           
static DateConverters.LocalDateTimeToLongConverter valueOf(String name)
          Returns the enum constant of this type with the specified name.
static DateConverters.LocalDateTimeToLongConverter[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

INSTANCE

public static final DateConverters.LocalDateTimeToLongConverter INSTANCE
Method Detail

values

public static DateConverters.LocalDateTimeToLongConverter[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (DateConverters.LocalDateTimeToLongConverter c : DateConverters.LocalDateTimeToLongConverter.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static DateConverters.LocalDateTimeToLongConverter valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
IllegalArgumentException - if this enum type has no constant with the specified name
NullPointerException - if the argument is null

convert

public Long convert(org.joda.time.LocalDateTime source)
Specified by:
convert in interface Converter<org.joda.time.LocalDateTime,Long>

Spring Data Couchbase

Copyright © 2011-2014–2014 Pivotal Software, Inc.. All rights reserved.