1 /*- 2 * Copyright (c) 2002, 2020 Oracle and/or its affiliates. All rights reserved. 3 * 4 * See the file LICENSE for license information. 5 * 6 */ 7 8 package com.sleepycat.persist.raw; 9 10 /** 11 * The definition of a field in a {@link RawType}. 12 * 13 * <p>{@code RawField} objects are thread-safe. Multiple threads may safely 14 * call the methods of a shared {@code RawField} object.</p> 15 * 16 * @author Mark Hayes 17 */ 18 public interface RawField { 19 20 /** 21 * Returns the name of the field. 22 * 23 * @return the name of the field. 24 */ getName()25 String getName(); 26 27 /** 28 * Returns the type of the field, without expanding parameterized types, 29 * or null if the type is an interface type or the Object class. 30 * 31 * @return the type of the field. 32 */ getType()33 RawType getType(); 34 } 35