Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/StylingAndroid/Prism
/ add
Method
add
prism/src/main/java/com/stylingandroid/prism/Prism.java:49–52 ·
view source on GitHub ↗
(Trigger trigger)
Source
from the content-addressed store, hash-verified
47
}
48
49
public
void
add(Trigger trigger) {
50
triggers.add(trigger);
51
trigger.addSetter(this);
52
}
53
54
public
void
remove(Trigger trigger) {
55
trigger.removeSetter(this);
Callers
14
setupViewPager
Method · 0.45
givenANonNullTriggerThenPrismCreationSetsTheTriggerCorrectly
Method · 0.45
givenAVanillaViewThenBackgroundSetsTheBackgroundColour
Method · 0.45
givenAWindowOnLollipopThenSetColourSetsTheStatusBarColour
Method · 0.45
givenAWindowOnPreLollipopThenSetColourDoesNotSetTheStatusBarColour
Method · 0.45
givenATextViewThenSetColourSetsTheTextColour
Method · 0.45
givenAFABThenSetColourSetsTheTintColour
Method · 0.45
givenANullSetterThenCreatingABuilderDoesNotThrowAnNpe
Method · 0.45
givenANullTriggerThenCreatingABuilderDoesNotThrowAnNpe
Method · 0.45
add
Method · 0.45
addSetter
Method · 0.45
registerFactory
Method · 0.45
Calls
1
addSetter
Method · 0.65
Tested by
9
givenANonNullTriggerThenPrismCreationSetsTheTriggerCorrectly
Method · 0.36
givenAVanillaViewThenBackgroundSetsTheBackgroundColour
Method · 0.36
givenAWindowOnLollipopThenSetColourSetsTheStatusBarColour
Method · 0.36
givenAWindowOnPreLollipopThenSetColourDoesNotSetTheStatusBarColour
Method · 0.36
givenATextViewThenSetColourSetsTheTextColour
Method · 0.36
givenAFABThenSetColourSetsTheTintColour
Method · 0.36
givenANullSetterThenCreatingABuilderDoesNotThrowAnNpe
Method · 0.36
givenANullTriggerThenCreatingABuilderDoesNotThrowAnNpe
Method · 0.36
setUp
Method · 0.36