public class StoryImpl extends Object implements Story
SnippetIterator#next()
,
Serialized FormModifier and Type | Field and Description |
---|---|
static Comparator<Story> |
ID_COMPARATOR
Orders StoryImpl's by their id number.
|
Constructor and Description |
---|
StoryImpl(int id,
SortedSet<Member> members,
String literalDescription,
int fragment,
int length)
Standard constructor.
|
StoryImpl(StoryImpl other,
int length)
This is a copy-constructor that's used when we subdivide a Range.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj)
Identity is based on the
id field. |
int |
getFragment() |
int |
getId() |
int |
getLength()
Used internally, and not specified by the Story interface.
|
String |
getLiteralTypeName()
If the Story represents a literal value, this method will return a
description of the type of literal.
|
SortedSet<Member> |
getMembers()
Gets the Members of the compilation that the Story is about.
|
int |
hashCode()
Identity is based on the
id field. |
public static final Comparator<Story> ID_COMPARATOR
public StoryImpl(int id, SortedSet<Member> members, String literalDescription, int fragment, int length)
public StoryImpl(StoryImpl other, int length)
public boolean equals(Object obj)
id
field.public int getFragment()
public int getId()
public int getLength()
public String getLiteralTypeName()
Story
null
.getLiteralTypeName
in interface Story
public SortedSet<Member> getMembers()
Story
getMembers
in interface Story
Copyright © 2016. All rights reserved.