Skip to content

BagState.isEmpty needs a tighter spec #18567

@kennknowles

Description

@kennknowles

Consider the following:


BagState<X> myBag = // empty
ReadableState<Boolean> isMyBagEmpty = myBag.isEmpty();
myBag.add(bizzle);
bool
empty = isMyBagEmpty.read();

Should empty be true or false? We need a consistent answer, across all kinds of state, when snapshots are required.

Imported from Jira BEAM-2980. Original Jira may contain additional context.
Reported by: kenn.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions