Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Java - Asterisk, what does it mean

I'm looking through the Alexa SDK. In the documentation here, they have the following:

directivesServices.enqueue(SendDirectiveRequest.\*builder\*().build());

What on earth does that asterisk do? I have never seen one in my life, and I'm curious as to what I've been missing out on.

like image 713
Black Dynamite Avatar asked May 24 '18 02:05

Black Dynamite


People also ask

What does an asterisk (*) indicate?

An asterisk is a star-shaped symbol (*) that has a few uses in writing. It is most commonly used to signal a footnote, but it is sometimes also used to clarify a statement or to censor inappropriate language.

Why is an asterisk (*) used here?

An asterisk is a star-shaped symbol (*) primarily used to call attention to a footnote, indicate an omission, point to disclaimers (which often appear in advertisements), and dress up company logos. An asterisk is also often placed in front of constructions that are ungrammatical.

Why do we use asterisk in first line of Java?

Asterisks in regular expression refers to match each and everything. It means that all the classes of the given package will be imported. Like java.

Do you put * before or after?

Asterisks and Other Punctuation Marks Well, it turns out the dash is an exception: according to the U.S. Government Printing Office Style Manual, the asterisk goes before the dash, but after every other punctuation mark. The asterisk goes before the dash, but after every other punctuation mark.


1 Answers

The asterisks (*) aren't part of Java's syntax.

It's a botched attempt in that page to emphasize the call to SendDirectiveRequest.builder. That line of code should read:

directivesServices.enqueue(SendDirectiveRequest.builder().build());
like image 102
Mureinik Avatar answered Sep 30 '22 16:09

Mureinik