All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.ldaptive.beans.spring.convert.DurationToStringConverter Maven / Gradle / Ivy

Go to download

Provides a mapping, persistence, and code generation API for reading and writing POJOs to an LDAP directory

There is a newer version: 2.4.0
Show newest version
/* See LICENSE for licensing and NOTICE for copyright. */
package org.ldaptive.beans.spring.convert;

import java.time.Duration;
import org.springframework.core.convert.converter.Converter;

/**
 * Convert a {@link Duration} to a String.
 *
 * @author  Middleware Services
 */
public class DurationToStringConverter implements Converter
{


  @Override
  public String convert(final Duration d)
  {
    return d.toString();
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy