View Javadoc
1   package org.oxerr.spring.cache.redis.scored.score.resolver.inherited.inheritable;
2   
3   import java.sql.Timestamp;
4   import java.time.Instant;
5   
6   /**
7    * @param <T> the version value type.
8    * <p>
9    * The following types and their sub types are supported:
10   * </p>
11   * <ul>
12   * <li>{@link Number}</li>
13   * <li>{@link Timestamp}</li>
14   * <li>{@link Instant}</li>
15   * </ul>
16   */
17  public interface Versioned<T> {
18  
19  	/**
20  	 * Returns the version.
21  	 *
22  	 * @return the version.
23  	 */
24  	T getVersion();
25  
26  }