//
//  Generated by the J2ObjC translator.  DO NOT EDIT!
//  source: android/platform/libcore/ojluni/src/main/java/java/util/DuplicateFormatFlagsException.java
//

#include "../../J2ObjC_header.h"

#pragma push_macro("INCLUDE_ALL_JavaUtilDuplicateFormatFlagsException")
#ifdef RESTRICT_JavaUtilDuplicateFormatFlagsException
#define INCLUDE_ALL_JavaUtilDuplicateFormatFlagsException 0
#else
#define INCLUDE_ALL_JavaUtilDuplicateFormatFlagsException 1
#endif
#undef RESTRICT_JavaUtilDuplicateFormatFlagsException

#pragma clang diagnostic push
#pragma GCC diagnostic ignored "-Wdeprecated-declarations"

#if __has_feature(nullability)
#pragma clang diagnostic push
#pragma GCC diagnostic ignored "-Wnullability"
#pragma GCC diagnostic ignored "-Wnullability-completeness"
#endif

#if !defined (JavaUtilDuplicateFormatFlagsException_) && (INCLUDE_ALL_JavaUtilDuplicateFormatFlagsException || defined(INCLUDE_JavaUtilDuplicateFormatFlagsException))
#define JavaUtilDuplicateFormatFlagsException_

#define RESTRICT_JavaUtilIllegalFormatException 1
#define INCLUDE_JavaUtilIllegalFormatException 1
#include "../../java/util/IllegalFormatException.h"

/*!
 @brief Unchecked exception thrown when duplicate flags are provided in the format
  specifier.
 <p> Unless otherwise specified, passing a <tt>null</tt> argument to any
  method or constructor in this class will cause a <code>NullPointerException</code>
  to be thrown.
 @since 1.5
 */
@interface JavaUtilDuplicateFormatFlagsException : JavaUtilIllegalFormatException

#pragma mark Public

/*!
 @brief Constructs an instance of this class with the specified flags.
 @param f The set of format flags which contain a duplicate flag.
 */
- (instancetype __nonnull)initWithNSString:(NSString *)f;

/*!
 @brief Returns the set of flags which contains a duplicate flag.
 @return The flags
 */
- (NSString *)getFlags;

- (NSString *)getMessage;

// Disallowed inherited constructors, do not use.

- (instancetype __nonnull)init NS_UNAVAILABLE;

@end

J2OBJC_EMPTY_STATIC_INIT(JavaUtilDuplicateFormatFlagsException)

FOUNDATION_EXPORT void JavaUtilDuplicateFormatFlagsException_initWithNSString_(JavaUtilDuplicateFormatFlagsException *self, NSString *f);

FOUNDATION_EXPORT JavaUtilDuplicateFormatFlagsException *new_JavaUtilDuplicateFormatFlagsException_initWithNSString_(NSString *f) NS_RETURNS_RETAINED;

FOUNDATION_EXPORT JavaUtilDuplicateFormatFlagsException *create_JavaUtilDuplicateFormatFlagsException_initWithNSString_(NSString *f);

J2OBJC_TYPE_LITERAL_HEADER(JavaUtilDuplicateFormatFlagsException)

#endif


#if __has_feature(nullability)
#pragma clang diagnostic pop
#endif

#pragma clang diagnostic pop
#pragma pop_macro("INCLUDE_ALL_JavaUtilDuplicateFormatFlagsException")
