Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.programmer > #31569 > unrolled thread

Re: What is this? (Java syntax)

Started byEric Sosman <esosman@comcast-dot-net.invalid>
First post2015-04-14 13:10 -0400
Last post2015-04-14 13:10 -0400
Articles 1 — 1 participant

Back to article view | Back to comp.lang.java.programmer

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: What is this? (Java syntax) Eric Sosman <esosman@comcast-dot-net.invalid> - 2015-04-14 13:10 -0400

#31569 — Re: What is this? (Java syntax)

FromEric Sosman <esosman@comcast-dot-net.invalid>
Date2015-04-14 13:10 -0400
SubjectRe: What is this? (Java syntax)
Message-ID<mgjhlc$tbg$1@dont-email.me>
On 4/14/2015 12:43 PM, Stefan Ram wrote:
>    I found this on a web page:
>
> private enum WinRegistryMethod {
>      OpenKey("WindowsRegOpenKey", int.class, byte[].class, int.class) {
>          @Override
>          protected void verifyReturnValue(Object retValue)
>          ...
>
>    What is the part beginning at »OpenKey«?

     An enum.  Remove the decorations, and you get

	private enum WinRegistryMethod {
	    OpenKey
	    , // presumably
	    ...


-- 
esosman@comcast-dot-net.invalid
"Don't be afraid of work. Make work afraid of you." -- TLM

[toc] | [standalone]


Back to top | Article view | comp.lang.java.programmer


csiph-web